diff options
Diffstat (limited to 'linux-linode.install')
-rw-r--r-- | linux-linode.install | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/linux-linode.install b/linux-linode.install new file mode 100644 index 000000000000..2f706ae6deda --- /dev/null +++ b/linux-linode.install @@ -0,0 +1,24 @@ +# arg 1: the new package version +# arg 2: the old package version + +KERNEL_NAME= +KERNEL_VERSION=3.0-ARCH + +post_install () { + echo ">>> Updating module dependencies. Please wait ..." + depmod ${KERNEL_VERSION} + echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." + mkinitcpio -p linux${KERNEL_NAME} +} + +post_upgrade() { + echo ">>> Updating module dependencies. Please wait ..." + depmod ${KERNEL_VERSION} + echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." + mkinitcpio -p linux${KERNEL_NAME} +} + +post_remove() { + rm -f boot/initramfs-linux${KERNEL_NAME}.img + rm -f boot/initramfs-linux${KERNEL_NAME}-fallback.img +} |