VirtualBox

Ignore:
Timestamp:
Dec 8, 2008 8:34:10 PM (16 years ago)
Author:
vboxsync
Message:

#3202: VBoxDrv[Tiger] fixes. Created two VBoxUSB versions too and kicked out the horrible postflight hack that edited Info.plist. Made VBoxUSB depend on VBoxDrv and share IPRT with it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/loadnetflt.sh

    r15130 r15131  
    1111#
    1212
     13SCRIPT_NAME="loadusb"
    1314XNU_VERSION=`LC_ALL=C uname -r | LC_ALL=C cut -d . -f 1`
    1415
     
    1718
    1819if [ "$XNU_VERSION" -ge "9" ]; then
    19   DEP_DRVNAME="VBoxDrv.kext"
     20    DEP_DRVNAME="VBoxDrv.kext"
    2021else
    21   DEP_DRVNAME="VBoxDrvTiger.kext"
     22    DEP_DRVNAME="VBoxDrvTiger.kext"
    2223fi
    2324DEP_BUNDLE="org.virtualbox.kext.VBoxDrv"
     
    4748LOADED=`kextstat -b $BUNDLE -l`
    4849if test -n "$LOADED"; then
    49     echo "loadnetflt.sh: Unloading $BUNDLE..."
     50    echo "${SCRIPT_NAME}.sh: Unloading $BUNDLE..."
    5051    sudo kextunload -v 6 -b $BUNDLE
    5152    LOADED=`kextstat -b $BUNDLE -l`
    5253    if test -n "$LOADED"; then
    53         echo "loadnetflt: failed to unload $BUNDLE, see above..."
     54        echo "${SCRIPT_NAME}.sh: failed to unload $BUNDLE, see above..."
    5455        exit 1;
    5556    fi
    56     echo "loadnetflt: Successfully unloaded $BUNDLE"
     57    echo "${SCRIPT_NAME}.sh: Successfully unloaded $BUNDLE"
    5758fi
    5859
     
    6162# Copy the .kext to the symbols directory and tweak the kextload options.
    6263if test -n "$VBOX_DARWIN_SYMS"; then
    63     echo "loadnetflt.sh: copying the extension the symbol area..."
     64    echo "${SCRIPT_NAME}.sh: copying the extension the symbol area..."
    6465    rm -Rf "$VBOX_DARWIN_SYMS/$DRVNAME"
    6566    mkdir -p "$VBOX_DARWIN_SYMS"
     
    7475OWNER=`/usr/bin/stat -f "%u" "$DIR"`
    7576if test "$OWNER" -ne 0; then
    76     TMP_DIR=/tmp/loadusb.tmp
    77     echo "loadnetflt.sh: chown didn't work on $DIR, using temp location $TMP_DIR/$DRVNAME"
     77    TMP_DIR=/tmp/${SCRIPT_NAME}.tmp
     78    echo "${SCRIPT_NAME}.sh: chown didn't work on $DIR, using temp location $TMP_DIR/$DRVNAME"
    7879
    7980    # clean up first (no sudo rm)
     
    9798sudo chmod -R o-rwx "$DIR"
    9899sync
    99 echo "loadnetflt: loading $DIR... (kextload $OPTS \"$DIR\")"
     100echo "${SCRIPT_NAME}.sh: loading $DIR... (kextload $OPTS \"$DIR\")"
    100101sudo kextload $OPTS -d "$DEP_DIR" "$DIR"
    101102sync
Note: See TracChangeset for help on using the changeset viewer.

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