summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-07-26 15:00:25 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-07-26 15:00:25 -0300
commit9d8e461bb8a66c4ab5c4e4091f008f4562a256fe (patch)
tree1dd7df512bdf1fb576340c3ce2b9a3935501fd88
parent72f0b570f60b4a3e5549546b96b881b3ee9a6bde (diff)
downloadabslibre-9d8e461bb8a66c4ab5c4e4091f008f4562a256fe.tar.gz
abslibre-9d8e461bb8a66c4ab5c4e4091f008f4562a256fe.tar.bz2
abslibre-9d8e461bb8a66c4ab5c4e4091f008f4562a256fe.zip
virtualbox-libre-modules-lts: fixing issues and adding install files
-rw-r--r--libre/virtualbox-libre-modules-lts/virtualbox-libre-modules-lts.install18
-rw-r--r--libre/virtualbox-libre-modules-lts/virtualbox-libre-parabola-modules-lts.install16
2 files changed, 34 insertions, 0 deletions
diff --git a/libre/virtualbox-libre-modules-lts/virtualbox-libre-modules-lts.install b/libre/virtualbox-libre-modules-lts/virtualbox-libre-modules-lts.install
new file mode 100644
index 000000000..5387563a6
--- /dev/null
+++ b/libre/virtualbox-libre-modules-lts/virtualbox-libre-modules-lts.install
@@ -0,0 +1,18 @@
+EXTRAMODULES='extramodules-3.0-LIBRE-LTS'
+
+post_install() {
+/bin/cat << EOF
+===> You must load vboxdrv module before starting VirtualBox:
+===> # modprobe vboxdrv
+EOF
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ echo 'In order to use the new version, reload all virtualbox modules manually.'
+}
+
+post_remove() {
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
diff --git a/libre/virtualbox-libre-modules-lts/virtualbox-libre-parabola-modules-lts.install b/libre/virtualbox-libre-modules-lts/virtualbox-libre-parabola-modules-lts.install
new file mode 100644
index 000000000..54a052390
--- /dev/null
+++ b/libre/virtualbox-libre-modules-lts/virtualbox-libre-parabola-modules-lts.install
@@ -0,0 +1,16 @@
+EXTRAMODULES='extramodules-3.0-LIBRE-LTS'
+
+post_install() {
+cat << EOF
+===> You may want to load vboxguest, vboxsf and vboxvideo
+EOF
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}