[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. c2e8461795044700ccea1e2f69b07364841a4f8c

Darren Salt linux at youmustbejoking.demon.co.uk
Wed Feb 25 16:51:35 UTC 2009


The following commit has been merged in the master branch:
commit c2e8461795044700ccea1e2f69b07364841a4f8c
Author: Darren Salt <linux at youmustbejoking.demon.co.uk>
Date:   Wed Feb 25 16:51:06 2009 +0000

    Remove the audio controls cache file on purge.

diff --git a/debian/postrm b/debian/postrm
index b1d66ba..c5b4690 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -1,9 +1,16 @@
 #!/bin/sh
 
+PKG=eeepc-acpi-scripts
+SOUND_FILE=/var/cache/$PKG/sound
+
 set -e
 
 case "$1" in
-    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    purge)
+        invoke-rc.d acpid restart>/dev/null
+        rm -f "$SOUND_FILE"
+    ;;
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
         invoke-rc.d acpid restart>/dev/null
     ;;
 

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-commits mailing list