Last change
on this file since 5166 was 4480, checked in by vboxsync, 17 years ago |
added copyright header
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Id
|
File size:
930 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | #
|
---|
4 | # For development.
|
---|
5 | #
|
---|
6 | # Copyright (C) 2006-2007 innotek GmbH
|
---|
7 | #
|
---|
8 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | # available from http://www.virtualbox.org. This file is free software;
|
---|
10 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | # General Public License as published by the Free Software Foundation,
|
---|
12 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
13 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
14 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 |
|
---|
16 |
|
---|
17 | DIR="VBoxDrv.kext"
|
---|
18 |
|
---|
19 | if [ ! -d "$DIR" ]; then
|
---|
20 | echo "Cannot find $DIR or it's not a directory..."
|
---|
21 | exit 1;
|
---|
22 | fi
|
---|
23 | if [ -n "$*" ]; then
|
---|
24 | OPTS="$*"
|
---|
25 | else
|
---|
26 | OPTS="-t"
|
---|
27 | fi
|
---|
28 |
|
---|
29 | trap "sudo chown -R `whoami` $DIR; exit 1" INT
|
---|
30 | set -x
|
---|
31 | sudo chown -R root:wheel "$DIR"
|
---|
32 | sudo chmod -R o-rwx "$DIR"
|
---|
33 | sync
|
---|
34 | sudo kextload $OPTS "$DIR"
|
---|
35 | sudo chown -R `whoami` "$DIR"
|
---|
36 | sudo chmod 666 /dev/vboxdrv
|
---|
Note:
See
TracBrowser
for help on using the repository browser.