]> git.proxmox.com Git - proxmox-ve.git/blame_incremental - debian/postrm
d/copyright: update years
[proxmox-ve.git] / debian / postrm
... / ...
CommitLineData
1#! /bin/sh
2
3# Abort if any command returns an error value
4set -e
5
6case "$1" in
7 purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
8 # remove kernel symlinks
9 rm -f /boot/pve/vmlinuz || true
10 rm -f /boot/pve/initrd.img || true
11 rmdir --ignore-fail-on-non-empty /boot/pve/ || true
12 ;;
13
14 *)
15 echo "postrm called with unknown argument \`$1'" >&2
16 exit 1
17 ;;
18esac
19
20#DEBHELPER#