View Single Post
Posts: 96 | Thanked: 15 times | Joined on Oct 2010
#13
Originally Posted by MohammadAG View Post
Can you paste output of
Code:
cat /var/lib/dpkg/info/abettercamera.postrm

Here is the output files

Nokia-N900:~# cat /var/lib/dpkg/info/abettercamera.postrm
#!/bin/sh
# postrm script for fcam-drivers
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# * <new-postrm> `abort-install' <old-version>
# * <new-postrm> `abort-upgrade' <old-version>
# * <disappearer's-postrm> `disappear' <overwriter>
# <overwriter-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)

# check for fcam-drivers
has_fcam=1
if dpkg-query -W --showformat='${Version} ${Status}\n' fcam-drivers | grep 'install.ok.installed'
then
has_fcam=1
else
has_fcam=0
fi

# remove our fcam driver hook symlink if no fcam package detected
if [ $has_fcam -eq 0 ]; then
rm -f /etc/modprobe.d/fcam.conf
fi

;;

*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.



exit 0


Nokia-N900:~#