summaryrefslogtreecommitdiff
path: root/community/vhba-module/vhba-module.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-10 23:14:50 +0000
committerroot <root@rshg054.dnsready.net>2011-11-10 23:14:50 +0000
commit4141f5b04aab597f88a617a82649a404c773469a (patch)
treeb293827df78bf1e9b7059db63c04c3f7ab854ae6 /community/vhba-module/vhba-module.install
parent7b0cdd65ac7bcd3c7597b528a10de58e4e0a430f (diff)
Thu Nov 10 23:14:50 UTC 2011
Diffstat (limited to 'community/vhba-module/vhba-module.install')
-rw-r--r--community/vhba-module/vhba-module.install8
1 files changed, 4 insertions, 4 deletions
diff --git a/community/vhba-module/vhba-module.install b/community/vhba-module/vhba-module.install
index 75669d1a5..eca9bb285 100644
--- a/community/vhba-module/vhba-module.install
+++ b/community/vhba-module/vhba-module.install
@@ -1,8 +1,8 @@
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."
- KERNEL_VERSION='3.0-ARCH'
- depmod $KERNEL_VERSION > /dev/null 2>&1
+ EXTRAMODULES='extramodules-3.1-ARCH'
+ depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_upgrade() {
@@ -10,7 +10,7 @@ post_upgrade() {
}
post_remove() {
- KERNEL_VERSION='3.0-ARCH'
- depmod $KERNEL_VERSION > /dev/null 2>&1
+ EXTRAMODULES='extramodules-3.1-ARCH'
+ depmod $(cat /lib/modules/$EXTRAMODULES/version)
}