pve-kernel-thunderx/proxmox-ve/postrm
Fabian Grünbichler ba2f1a676e initial import from https://git.proxmox.com/?p=pve-kernel.git;a=tree
without all the big .tar.gz files
2017-03-15 14:43:14 +01:00

19 lines
394 B
Bash
Executable file

#! /bin/sh
# Abort if any command returns an error value
set -e
case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
# remove kernel symlinks
rm -f /boot/pve/vmlinuz
rm -f /boot/pve/initrd.img
rmdir --ignore-fail-on-non-empty /boot/pve/ || true
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac