1 # Maintainer: DonVla <donvla@users.sourceforge.net>
2 # linux-n130 install file
5 KERNEL_VERSION=3.1.1-1-N130
8 # updating module dependencies
9 echo ">>> Updating module dependencies. Please wait ..."
10 depmod "$KERNEL_VERSION"
16 echo ">>> This kernel uses no initrd by default, so you should remove"
17 echo ">>> the initrd line from your kernel boot options."
18 echo ">>> Because of this no udev is loaded during early booting,"
19 echo ">>> so you should not use persistent naming (eg. LABEL or UUID)"
20 echo ">>> for the 'root=' or 'resume=' kernel boot options."
21 echo ">>> If you want to use initrd or added any HOOKS to /etc/mkinitcpio-N130.conf"
22 echo ">>> you might want to run \"mkinitcpio -p linux-N130\"."
23 echo ">>> Change then your kernel boot options accordingly."
27 pacman -Q grub &>/dev/null
29 pacman -Q grub2 &>/dev/null
31 pacman -Q lilo &>/dev/null
34 if [ $haslilo -eq 0 ]; then
36 if [ $hasgrub -eq 0 -o $hasgrub2 -eq 0 ]; then
37 echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
39 echo ">>> You appear to be using the LILO bootloader. You should run"
40 echo ">>> 'lilo' before rebooting."
45 if grep "^[^#]*/boot" /etc/fstab 2>&1 >/dev/null; then
46 if ! grep "/boot" /etc/mtab 2>&1 >/dev/null; then
47 echo "WARNING: /boot appears to be a seperate partition but is not mounted"
48 echo " This is most likely not what you want. Please mount your /boot"
49 echo " partition and reinstall the kernel unless you are sure this is OK"
57 [[ -f "/boot/linux${KERNEL_NAME}.img" ]] && rm -f /boot/linux${KERNEL_NAME}.img
58 [[ -f "/boot/linux${KERNEL_NAME}-fallback.img" ]] && rm -f /boot/linux${KERNEL_NAME}-fallback.img