Package: apmd
Version: 3.2.2-2
Severity: normal
Tags: patch

When I purge apmd, it leaves /etc/apm/suspend.d/99hwclock and
/etc/apm/resume.d/00hwclock around as dangling symlinks. I suggest this
patch:

diff -u apmd-3.2.2/debian/apmd.postrm apmd-3.2.2/debian/apmd.postrm
--- apmd-3.2.2/debian/apmd.postrm
+++ apmd-3.2.2/debian/apmd.postrm
@@ -6,6 +6,13 @@
 
 set -e
 
+case "$1" in
+(purge)
+    rm -f /etc/apm/suspend.d/99hwclock /etc/apm/resume.d/00hwclock
+    rmdir -p --ignore-fail-on-non-empty /etc/apm/suspend.d /etc/apm/resume.d
+    ;;
+esac
+
 #DEBHELPER#
 
 exit 0

Thanks,

-- 
Colin Watson                                       [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to