summaryrefslogtreecommitdiff
path: root/community/open-vm-tools-modules/open-vm-tools-modules.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/open-vm-tools-modules/open-vm-tools-modules.install')
-rw-r--r--community/open-vm-tools-modules/open-vm-tools-modules.install13
1 files changed, 6 insertions, 7 deletions
diff --git a/community/open-vm-tools-modules/open-vm-tools-modules.install b/community/open-vm-tools-modules/open-vm-tools-modules.install
index 187dfb1bb..ba2f9ddc2 100644
--- a/community/open-vm-tools-modules/open-vm-tools-modules.install
+++ b/community/open-vm-tools-modules/open-vm-tools-modules.install
@@ -1,8 +1,6 @@
-KERNEL_VERSION='3.1.0-4-ARCH'
-
post_install() {
- depmod -a -v $KERNEL_VERSION > /dev/null 2>&1
-
+ EXTRAMODULES='extramodules-3.1-ARCH'
+ depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo ">>> Enabling vmxnet driver in /etc/modprobe.d/open-vm-tools-modules.conf"
echo ">>> (this will disable pcnet32 driver)"
echo ">>>"
@@ -12,12 +10,13 @@ post_install() {
}
post_upgrade() {
- depmod -a -v $KERNEL_VERSION > /dev/null 2>&1
+ EXTRAMODULES='extramodules-3.1-ARCH'
+ depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_remove() {
- depmod -a -v $KERNEL_VERSION > /dev/null 2>&1
-
+ EXTRAMODULES='extramodules-3.1-ARCH'
+ depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo ">>>"
echo ">>> Remember to un-blacklist pcnet32 driver"
echo ">>>"