Removing /etc/live/boot if empty on purge in postrm.
[debian-live-boot/hramrach.git] / debian / live-boot.postrm
blob1a7fc901f66d9694680e48a0cc9cb8908af923b4
1 #!/bin/sh
3 set -e
5 case "${1}" in
6 purge)
7 rmdir --ignore-fail-on-non-empty /etc/live/boot > /dev/null 2>&1 || true
8 rmdir --ignore-fail-on-non-empty /etc/live > /dev/null 2>&1 || true
9 ;;
11 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
16 echo "postrm called with unknown argument \`${1}'" >&2
17 exit 1
19 esac
21 #DEBHELPER#
23 exit 0