summaryrefslogtreecommitdiff
path: root/community/vhba-module/vhba-module.install
diff options
context:
space:
mode:
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 edb9e8d2b..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='2.6.39-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='2.6.39-ARCH'
- depmod $KERNEL_VERSION > /dev/null 2>&1
+ EXTRAMODULES='extramodules-3.1-ARCH'
+ depmod $(cat /lib/modules/$EXTRAMODULES/version)
}