diff options
Diffstat (limited to 'community/vhba-module/vhba-module.install')
-rw-r--r-- | community/vhba-module/vhba-module.install | 8 |
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) } |