updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / linux-n130 / linux-N130.install
blob2065669d54133e47e4c37921a862b9409ebd9274
1 # Maintainer: DonVla <donvla@users.sourceforge.net>
2 # linux-n130 install file
4 KERNEL_NAME=-N130
5 KERNEL_VERSION=3.1.1-1-N130
7 _rundepmod() {
8   # updating module dependencies
9   echo ">>> Updating module dependencies. Please wait ..."
10   depmod "$KERNEL_VERSION"
13 post_install() {
14   _rundepmod
15   echo ">>>"
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."
26 post_upgrade() {
27   pacman -Q grub &>/dev/null
28   hasgrub=$?
29   pacman -Q grub2 &>/dev/null
30   hasgrub2=$?
31   pacman -Q lilo &>/dev/null
32   haslilo=$?
33   # reminder notices
34   if [ $haslilo -eq 0 ]; then
35     echo ">>>"
36     if [ $hasgrub -eq 0 -o $hasgrub2 -eq 0 ]; then
37       echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
38     else
39       echo ">>> You appear to be using the LILO bootloader. You should run"
40       echo ">>> 'lilo' before rebooting."
41     fi
42     echo ">>>"
43   fi
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"
50     fi
51   fi
53   _rundepmod
56 post_remove() {
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