updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / kernel26-eee901 / kernel26-eee901.install
blobb048528b55f45947c8e21e79baf1dc9726370430
1 # arg 1:  the new package version
2 # arg 2:  the old package version
4 KERNEL_NAME=-eee901
5 KERNEL_VERSION=2.6.30-rc7-eee901
7 post_install () {
8   # updating module dependencies
9   echo ">>> Updating module dependencies. Please wait ..."
10   depmod $KERNEL_VERSION 
11   # generate init ramdisks
12   echo ">>> MKINITCPIO SETUP"
13   echo ">>> ----------------"
14   echo ">>> If you use LVM2, Encrypted root or software RAID,"
15   echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
16   echo ">>> More information about mkinitcpio setup can be found here:"
17   echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
18   echo ""
19   echo ">>> Generating initial ramdisk, using mkinitcpio.  Please wait..."
20   /sbin/mkinitcpio -p kernel26${KERNEL_NAME}
23 post_upgrade() {
24   pacman -Q grub &>/dev/null
25   hasgrub=$?
26   pacman -Q lilo &>/dev/null
27   haslilo=$?
28   # reminder notices
29   if [ $haslilo -eq 0 ]; then
30     echo ">>>"
31     if [ $hasgrub -eq 0 ]; then
32       echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
33     else
34       echo ">>> You appear to be using the LILO bootloader. You should run"
35       echo ">>> 'lilo' before rebooting."
36     fi
37     echo ">>>"
38   fi
40   if grep "/boot" /etc/fstab 2>&1 >/dev/null; then
41     if ! grep "/boot" /etc/mtab 2>&1 >/dev/null; then
42       echo "WARNING: /boot appears to be a seperate partition but is not mounted"
43       echo "         This is most likely not what you want.  Please mount your /boot"
44       echo "         partition and reinstall the kernel unless you are sure this is OK"
45     fi
46   fi
48   # updating module dependencies
49   echo ">>> Updating module dependencies. Please wait ..."
50   depmod $KERNEL_VERSION
51   echo ">>> MKINITCPIO SETUP"
52   echo ">>> ----------------"
53   echo ">>> If you use LVM2, Encrypted root or software RAID,"
54   echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
55   echo ">>> More information about mkinitcpio setup can be found here:"
56   echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
57   echo ""
58   echo ">>> Generating initial ramdisk, using mkinitcpio.  Please wait..."
59   # generate new init ramdisk
60   /sbin/mkinitcpio -p kernel26${KERNEL_NAME}
63 op=$1
64 shift
66 $op $*