pkg://apmd_3.2.2-8.1_sparc.deb:50602/postrm
info downloads
#!/bin/sh
#
# This is the postrm script for the Debian GNU/Linux apmd package
#
# Written by Dirk Eddelbuettel <edd@debian.org>
set -e
del_link ()
{
for FN in "${@}"; do
if [ -h "${FN}" ]; then
rm -f "${FN}" || true
fi
done
}
case "$1" in
(purge)
del_link /etc/apm/suspend.d/99hwclock /etc/apm/resume.d/00hwclock
[ -d /etc/apm/resume.d ] && rmdir -p --ignore-fail-on-non-empty /etc/apm/resume.d
[ -d /etc/apm/suspend.d ] && rmdir -p --ignore-fail-on-non-empty /etc/apm/suspend.d
;;
esac
# Automatically added by dh_installinit
if [ "$1" = "purge" ] ; then
update-rc.d apmd remove >/dev/null || exit $?
fi
# End automatically added section
exit 0