updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / linux-ice / linux-ice.install
blob7139f51140e5da453208b2a37e594219748ff53a
1 # arg 1:  the new package version
2 # arg 2:  the old package version
4 KERNEL_NAME=-ice
5 KERNEL_VERSION=3.0-ice
7 post_install () {
8   # updating module dependencies
9   echo ">>> Updating module dependencies. Please wait ..."
10   depmod ${KERNEL_VERSION}
11   echo ">>> Generating initial ramdisk, using mkinitcpio.  Please wait..."
12   mkinitcpio -p linux${KERNEL_NAME}
14   # add compat symlinks for the initramfs images
15   ln -sf initramfs-linux${KERNEL_NAME}.img boot/kernel26${KERNEL_NAME}.img
16   ln -sf initramfs-linux${KERNEL_NAME}-fallback.img \
17     boot/kernel26${KERNEL_NAME}-fallback.img
20 post_upgrade() {
21         post_install
24 post_remove() {
25   # also remove the compat symlinks
26   rm -f boot/{initramfs-linux,kernel26}${KERNEL_NAME}.img
27   rm -f boot/{initramfs-linux,kernel26}${KERNEL_NAME}-fallback.img