updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / linux-one / linux-one.install
blob93c0adf30add55d29c519b37ec01eba52d8893d7
1   # arg 1:  the new package version
2 # arg 2:  the old package version
4 KERNEL_VERSION=3.2.1-one
6 post_upgrade() {
7   depmod -ae -v $KERNEL_VERSION  > /dev/null 2>&1
9   echo "For fan control add acerhdf to the modules section in rc.conf"
10   echo "AND either add \"acerhdf.kernelmode=1\" to the kernel boot line in /boot/grub/menu.lst"
11   echo "OR create /etc/modprobe.d/acerhdf.conf with the following contents:"
12   echo " options acerhdf kernelmode=1"
15 post_install() {
16   echo "Add the following entry to /boot/grub/menu.lst:"
17   echo "# (next number) Arch Linux"
18   echo "title  Arch Linux ArchOne [/boot/vmlinuz-one]"
19   echo "root   (hd0,0)"
20   echo "kernel /boot/vmlinuz-one root=/dev/sda1 ro snd_hda_intel.model=acer-aspire"
21   echo .
22   post_upgrade
25 post_remove() {
26   depmod -ae -v $KERNEL_VERSION  > /dev/null 2>&1       
29 op=$1
30 shift
31 $op $*