projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
339243f
)
Removing /etc/live/boot if empty on purge in postrm.
author
Daniel Baumann
<daniel@debian.org>
Fri, 24 Aug 2012 10:27:14 +0000
(12:27 +0200)
committer
Daniel Baumann
<daniel@debian.org>
Fri, 24 Aug 2012 10:27:14 +0000
(12:27 +0200)
debian/live-boot.postrm
[new file with mode: 0644]
patch
|
blob
diff --git a/debian/live-boot.postrm
b/debian/live-boot.postrm
new file mode 100644
(file)
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