summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-10-12 17:23:51 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2013-10-12 17:23:51 +0200
commitfdd11840a4fe9ed4289e19da3ba33927c57bdb97 (patch)
treef3d26655ee391b6ccd8d3f08478f0c061169baa4
parent6d62bd8606d00dbcb4a2948006b87cbc16bda7f5 (diff)
downloadbin-fdd11840a4fe9ed4289e19da3ba33927c57bdb97.zip
bin-fdd11840a4fe9ed4289e19da3ba33927c57bdb97.tar.gz
add vboxdrv
-rwxr-xr-xvboxdrv19
1 files changed, 19 insertions, 0 deletions
diff --git a/vboxdrv b/vboxdrv
new file mode 100755
index 0000000..6cf3400
--- /dev/null
+++ b/vboxdrv
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+case "$1" in
+ start)
+ find -L /lib/modules/`uname -r` -name "vbox*" | while read module; do
+ modprobe $(basename $module ".ko.gz")
+ done
+ ;;
+ stop)
+ find -L /lib/modules/`uname -r` -name "vbox*" | while read module; do
+ rmmod $(basename $module ".ko") 2>/dev/null
+ done
+ find -L /lib/modules/`uname -r` -name "vbox*" | while read module; do
+ rmmod $(basename $module ".ko") 2>/dev/null
+ done
+ ;;
+ *)
+ echo "usage: $0 {start|stop}"
+esac