15 lines
357 B
Bash
Executable File
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
|