summaryrefslogtreecommitdiff
path: root/community-testing/virtualbox-modules/virtualbox-modules.install
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/virtualbox-modules/virtualbox-modules.install')
-rw-r--r--community-testing/virtualbox-modules/virtualbox-modules.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/community-testing/virtualbox-modules/virtualbox-modules.install b/community-testing/virtualbox-modules/virtualbox-modules.install
new file mode 100644
index 000000000..188c1874c
--- /dev/null
+++ b/community-testing/virtualbox-modules/virtualbox-modules.install
@@ -0,0 +1,19 @@
+post_install() {
+/bin/cat << EOF
+===> You must load vboxdrv module before starting VirtualBox:
+===> # modprobe vboxdrv
+EOF
+ EXTRAMODULES='extramodules-3.1-ARCH'
+ depmod $(cat /lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+ EXTRAMODULES='extramodules-3.1-ARCH'
+ depmod $(cat /lib/modules/$EXTRAMODULES/version)
+ rmmod vboxdrv || echo 'In order to use the new version, reload all virtualbox modules manually.'
+}
+
+post_remove() {
+ EXTRAMODULES='extramodules-3.1-ARCH'
+ depmod $(cat /lib/modules/$EXTRAMODULES/version)
+}