Files
ports/packages/linux/configure/kernel-remove
T
2026-09-26 15:49:08 +00:00

15 lines
357 B
Bash
Executable File

#!/bin/sh
[ "${ACTION}" = "install" ] && exit 0
source "/var/config/kernel.conf" 2> /dev/null
source "${PREFIX}/KernelInfo.txt"
rm -f "/boot/vmlinux-${KERNEL_INFO_UPSTREAM_VERSION}"
rm -f "/boot/vmlinuz-${KERNEL_INFO_UPSTREAM_VERSION}"
rm -f "/boot/initramfs-${KERNEL_INFO_UPSTREAM_VERSION}.img"
if [ "${BOOTLOADER}" = "grub" ]; then
update-grub
fi