mirror of
https://github.com/outbackdingo/ports.git
synced 2026-02-07 09:50:25 +00:00
23 lines
470 B
Plaintext
Executable File
23 lines
470 B
Plaintext
Executable File
post_install() {
|
|
if [ -f /lib/modules/KERNELVERSION ]; then
|
|
kernver=$(cat /lib/modules/KERNELVERSION)
|
|
else
|
|
kernver=$(file /boot/vmlinuz-venom | cut -d ' ' -f9)
|
|
fi
|
|
if [ $(type -p mkinitramfs) ]; then
|
|
mkinitramfs -a -k $kernver -o /boot/initrd-venom.img
|
|
mkinitramfs -k $kernver -o /boot/initrd-venom-fallback.img
|
|
fi
|
|
depmod $kernver
|
|
}
|
|
|
|
post_upgrade() {
|
|
post_install
|
|
}
|
|
|
|
post_remove() {
|
|
rm -f /boot/initrd-venom.img
|
|
rm -f /boot/initrd-venom-fallback.img
|
|
}
|
|
|