]>
Commit | Line | Data |
---|---|---|
81c0c4aa DM |
1 | #! /bin/sh |
2 | ||
3 | # Abort if any command returns an error value | |
4 | set -e | |
5 | ||
6 | case "$1" in | |
7 | purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) | |
8 | # remove kernel symlinks | |
9 | rm -f /boot/pve/vmlinuz | |
10 | rm -f /boot/pve/initrd.img | |
50cc724a | 11 | rmdir --ignore-fail-on-non-empty /boot/pve/ || true |
81c0c4aa DM |
12 | ;; |
13 | ||
14 | *) | |
15 | echo "postrm called with unknown argument \`$1'" >&2 | |
16 | exit 1 | |
17 | ;; | |
18 | esac | |
19 |