VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/Support/darwin/load.sh@ 1547

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
7DIR="VBoxDrv.kext"
8
9if [ ! -d "$DIR" ]; then
10 echo "Cannot find $DIR or it's not a directory..."
11 exit 1;
12fi
13if [ -n "$*" ]; then
14 OPTS="$*"
15else
16 OPTS="-t"
17fi
18
19trap "sudo chown -R `whoami` $DIR; exit 1" INT
20set -x
21sudo chown -R root:wheel "$DIR"
22sudo chmod -R o-rwx "$DIR"
23sync
24sudo kextload $OPTS "$DIR"
25sudo chown -R `whoami` "$DIR"
26sudo chmod 666 /dev/vboxdrv
27
28
29
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette