File: //var/lib/dpkg/info/linux-image-6.6.116-grsec-jammy-dirty.prerm
#!/bin/sh
set -e
# Pass maintainer script parameters to hook scripts
export DEB_MAINT_PARAMS="$*"
# Tell initramfs builder whether it's wanted
export INITRD=Yes
if [ "prerm" = "preinst" -a "Yes" = "Yes" ]; then
chmod -f 700 /boot 2> /dev/null || true
chmod -f 700 /lib/modules 2> /dev/null || true
chmod -f 700 /lib32/modules 2> /dev/null || true
chmod -f 700 /lib64/modules 2> /dev/null || true
fi
test -d /etc/kernel/prerm.d && run-parts --arg="6.6.116-grsec-jammy-dirty" --arg="/boot/vmlinuz-6.6.116-grsec-jammy-dirty" /etc/kernel/prerm.d
exit 0