# arg 1: the new package version # arg 2: the old package version KERNEL_NAME=-linode KERNEL_VERSION=3.8.10-1-linode export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' 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() { rm -f boot/initramfs-linux${KERNEL_NAME}-fallback.img 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 }