Last change
on this file since 1547 was 216, checked in by vboxsync, 18 years ago |
...
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Id
|
File size:
412 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | #
|
---|
4 | # For development.
|
---|
5 | #
|
---|
6 |
|
---|
7 | DIR="VBoxDrv.kext"
|
---|
8 |
|
---|
9 | if [ ! -d "$DIR" ]; then
|
---|
10 | echo "Cannot find $DIR or it's not a directory..."
|
---|
11 | exit 1;
|
---|
12 | fi
|
---|
13 | if [ -n "$*" ]; then
|
---|
14 | OPTS="$*"
|
---|
15 | else
|
---|
16 | OPTS="-t"
|
---|
17 | fi
|
---|
18 |
|
---|
19 | trap "sudo chown -R `whoami` $DIR; exit 1" INT
|
---|
20 | set -x
|
---|
21 | sudo chown -R root:wheel "$DIR"
|
---|
22 | sudo chmod -R o-rwx "$DIR"
|
---|
23 | sync
|
---|
24 | sudo kextload $OPTS "$DIR"
|
---|
25 | sudo chown -R `whoami` "$DIR"
|
---|
26 | sudo chmod 666 /dev/vboxdrv
|
---|
27 |
|
---|
28 |
|
---|
29 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.