Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing /etc/live/boot if empty on purge in postrm.
- Loading branch information
1 parent
339243f
commit b75baa7
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |