updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / hso / hso.install
blob67258ba98ee3c11deabb5dfdf4befdd95237d7f3
1 KERNEL_VERSION=2.6.28-ARCH
3 post_install() {
4   #Backup kernel hso.ko
5   mv /lib/modules/$KERNEL_VERSION/kernel/drivers/net/usb/hso.ko /lib/modules/$KERNEL_VERSION/kernel/drivers/net/usb/hso.ko.bak
6   depmod $KERNEL_VERSION
9 post_upgrade() {
10   #Backup kernel hso.ko
11   if [ -f /lib/modules/$KERNEL_VERSION/kernel/drivers/net/usb/hso.ko ]
12   then
13     rm /lib/modules/$KERNEL_VERSION/kernel/drivers/net/usb/hso.ko.bak
14     mv /lib/modules/$KERNEL_VERSION/kernel/drivers/net/usb/hso.ko /lib/modules/$KERNEL_VERSION/kernel/drivers/net/usb/hso.ko.bak
15   fi
16   depmod $KERNEL_VERSION
19 post_remove() {
20   #Restore kernel hso.ko
21   if [ -f /lib/modules/$KERNEL_VERSION/kernel/drivers/net/usb/hso.ko ]
22   then
23     rm /lib/modules/$KERNEL_VERSION/kernel/drivers/net/usb/hso.ko.bak
24   else
25     mv /lib/modules/$KERNEL_VERSION/kernel/drivers/net/usb/hso.ko.bak /lib/modules/$KERNEL_VERSION/kernel/drivers/net/usb/hso.ko
26   fi
27   depmod $KERNEL_VERSION