summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-08-24 12:27:14 +0200
committerDaniel Baumann <daniel@debian.org>2012-08-24 12:27:14 +0200
commitb75baa7f4fa4476cbf0a3273a140a887c3ac1e6b (patch)
treeb795d9811e7efb4aa459c0416eef16f8ca2f5ee3
parent339243f3eb5086729cb1758f85fddf52cf088ea0 (diff)
downloadlive-boot-b75baa7f4fa4476cbf0a3273a140a887c3ac1e6b.tar.gz
live-boot-b75baa7f4fa4476cbf0a3273a140a887c3ac1e6b.zip
Removing /etc/live/boot if empty on purge in postrm.
-rw-r--r--debian/live-boot.postrm23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/live-boot.postrm b/debian/live-boot.postrm
new file mode 100644
index 0000000..1a7fc90
--- /dev/null
+++ b/debian/live-boot.postrm
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ purge)
+ rmdir --ignore-fail-on-non-empty /etc/live/boot > /dev/null 2>&1 || true
+ rmdir --ignore-fail-on-non-empty /etc/live > /dev/null 2>&1 || true
+ ;;
+
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0