1 # arg 1: the new package version
2 # arg 2: the old package version
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
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