summaryrefslogtreecommitdiffstats
path: root/vhba-module/vhba-module.install
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-01-30 01:11:15 +0100
committerFlorian Pritz <bluewind@xssn.at>2010-01-30 01:11:15 +0100
commit4efa028fc82176689995f24a217cd0cc56668637 (patch)
tree52dec397ae07307ed9516292cfff38ca32751ec2 /vhba-module/vhba-module.install
parent8188a93406cf6bae1a356d22ebd84c3cad0f5e6a (diff)
downloadaur-packages-4efa028fc82176689995f24a217cd0cc56668637.tar.gz
aur-packages-4efa028fc82176689995f24a217cd0cc56668637.tar.xz
update
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'vhba-module/vhba-module.install')
-rw-r--r--vhba-module/vhba-module.install19
1 files changed, 8 insertions, 11 deletions
diff --git a/vhba-module/vhba-module.install b/vhba-module/vhba-module.install
index 4f7e460..422ff82 100644
--- a/vhba-module/vhba-module.install
+++ b/vhba-module/vhba-module.install
@@ -1,19 +1,16 @@
-# Copied/modified from frandom.install
-
-# arg 1: the new package version
-# arg 2: the old package version
-
-post_install () {
+post_install() {
echo ">> Place 'vhba' in MODULES= in /etc/rc.conf to enable vhba on system boot."
echo ">> This module needs to be recompiled for every kernel version upgrade."
- depmod -a
+ KERNEL_VERSION='2.6.32-ARCH'
+ depmod $KERNEL_VERSION > /dev/null 2>&1
}
-pre_remove () {
- rmmod vhba 2> /dev/null
+post_upgrade() {
+ post_install
}
-post_remove () {
- depmod -a
+post_remove() {
+ KERNEL_VERSION='2.6.32-ARCH'
+ depmod $KERNEL_VERSION > /dev/null 2>&1
}