postrm is in kubuntu-default-settings 1:12.04ubuntu4.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #! /bin/sh
set -e
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/X11/Xsession.d/80qtgraphicssystem 1:12.04ubuntu2 -- "$@"
# End automatically added section
case "$1" in
purge)
# remove symbolic links on purge again (careful, only if these *are* symlinks,
# also don't bail out if s.th. goes wrong (e.g. /media mounted r.o.)
if [ -h /.hidden ]; then
rm /.hidden || \
echo "Could not remove symlink /.hidden, skipping."
fi
if [ -h /media/.hidden ]; then
rm /media/.hidden || \
echo "Could not remove symlink /media/.hidden, skipping."
fi
;;
remove)
if update-alternatives --query newt-palette | grep -qs "Value: /etc/newt/palette.original"; then
update-alternatives --auto newt-palette || true
fi
;;
esac
|