mirror of
https://git.proxmox.com/git/pve-kernel-meta
synced 2025-08-05 15:49:49 +00:00
19 lines
388 B
Bash
Executable File
19 lines
388 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-@KERNEL_ABI@
|
|
rm -f /boot/pve/initrd.img-@KERNEL_ABI@
|
|
;;
|
|
|
|
*)
|
|
echo "postrm called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|