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