VirtualBox

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

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
17DIR="VBoxDrv.kext"
18
19if [ ! -d "$DIR" ]; then
20 echo "Cannot find $DIR or it's not a directory..."
21 exit 1;
22fi
23if [ -n "$*" ]; then
24 OPTS="$*"
25else
26 OPTS="-t"
27fi
28
29trap "sudo chown -R `whoami` $DIR; exit 1" INT
30set -x
31sudo chown -R root:wheel "$DIR"
32sudo chmod -R o-rwx "$DIR"
33sync
34sudo kextload $OPTS "$DIR"
35sudo chown -R `whoami` "$DIR"
36sudo chmod 666 /dev/vboxdrv
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