blob: 6cf340010bffe518f091c60ec3ad566822b77f5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
|