diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-10-12 17:23:51 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-10-12 17:23:51 +0200 |
commit | fdd11840a4fe9ed4289e19da3ba33927c57bdb97 (patch) | |
tree | f3d26655ee391b6ccd8d3f08478f0c061169baa4 /vboxdrv | |
parent | 6d62bd8606d00dbcb4a2948006b87cbc16bda7f5 (diff) | |
download | bin-fdd11840a4fe9ed4289e19da3ba33927c57bdb97.zip bin-fdd11840a4fe9ed4289e19da3ba33927c57bdb97.tar.gz |
add vboxdrv
Diffstat (limited to 'vboxdrv')
-rwxr-xr-x | vboxdrv | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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 |