updated on Tue Jan 10 16:09:17 UTC 2012
[aur-mirror.git] / rsbac26-git / kernel26.install
blob0e15dc186ca6374d5953c5f7cf328983320fad5c
1 # arg 1:  the new package version
2 # arg 2:  the old package version
4 KERNEL_NAME=rsbac26-git
5 #KERNEL_VERSION=2.6.35-rsbac-ARCH+
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 ${KERNEL_NAME}
23 post_upgrade() {
24   pacman -Q grub &>/dev/null
25   hasgrub=$?
26   pacman -Q grub2 &>/dev/null
27   hasgrub2=$?
28   pacman -Q lilo &>/dev/null
29   haslilo=$?
30   # reminder notices
31   if [ $haslilo -eq 0 ]; then
32     echo ">>>"
33     if [ $hasgrub -eq 0 -o $hasgrub2 -eq 0 ]; then
34       echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
35     else
36       echo ">>> You appear to be using the LILO bootloader. You should run"
37       echo ">>> 'lilo' before rebooting."
38     fi
39     echo ">>>"
40   fi
42   if grep "^[^#]*/boot" /etc/fstab 2>&1 >/dev/null; then
43     if ! grep "/boot" /etc/mtab 2>&1 >/dev/null; then
44       echo "WARNING: /boot appears to be a seperate partition but is not mounted"
45       echo "         This is most likely not what you want.  Please mount your /boot"
46       echo "         partition and reinstall the kernel unless you are sure this is OK"
47     fi
48   fi
50   # updating module dependencies
51   echo ">>> Updating module dependencies. Please wait ..."
52   depmod $KERNEL_VERSION
53   echo ">>> MKINITCPIO SETUP"
54   echo ">>> ----------------"
56   echo ">>> If you use LVM2, Encrypted root or software RAID,"
57   echo ">>> Ensure you enable support in /etc/mkinitcpio.conf ."
58   echo ">>> More information about mkinitcpio setup can be found here:"
59   echo ">>> http://wiki.archlinux.org/index.php/Mkinitcpio"
60   echo ""
61   echo ">>> Generating initial ramdisk, using mkinitcpio.  Please wait..."
63   /sbin/mkinitcpio -p ${KERNEL_NAME}
66 post_remove() {
67   rm -f /boot/kernel26-${KERNEL_NAME}.img
68   rm -f /boot/kernel26-${KERNEL_NAME}-fallback.img