summaryrefslogtreecommitdiff
path: root/libre/virtualbox-libre-modules/virtualbox-libre-host-modules.install
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-10-16 20:08:12 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-10-16 20:08:12 -0400
commit4a0d84ee70b7ed0343eeb0c09df08c991ff7d95c (patch)
tree37e7b194c0bafd56472413dcf948e94b4765baef /libre/virtualbox-libre-modules/virtualbox-libre-host-modules.install
parent68fa07be35a2514835c1272884219adc110abc3b (diff)
parent7701a796e16a4196b4e0602d37b9fabbcb077ba8 (diff)
downloadabslibre-4a0d84ee70b7ed0343eeb0c09df08c991ff7d95c.tar.gz
abslibre-4a0d84ee70b7ed0343eeb0c09df08c991ff7d95c.tar.bz2
abslibre-4a0d84ee70b7ed0343eeb0c09df08c991ff7d95c.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/virtualbox-libre-modules/virtualbox-libre-host-modules.install')
-rwxr-xr-xlibre/virtualbox-libre-modules/virtualbox-libre-host-modules.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/libre/virtualbox-libre-modules/virtualbox-libre-host-modules.install b/libre/virtualbox-libre-modules/virtualbox-libre-host-modules.install
new file mode 100755
index 000000000..8605cf20a
--- /dev/null
+++ b/libre/virtualbox-libre-modules/virtualbox-libre-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-LIBRE'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+ EXTRAMODULES='extramodules-3.5-LIBRE'
+ 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-LIBRE'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}