summaryrefslogtreecommitdiff
path: root/src/VBox/HostDrivers/VBoxUSB
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2021-01-22 19:22:03 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2021-01-22 19:22:03 +0000
commitd77ddb252b061ba3068cfc276f7608956a828b4b (patch)
tree4fae48ad511416b055f0f80eda25e63b85ad3904 /src/VBox/HostDrivers/VBoxUSB
parent360cc56af9ac46133c480356e5e6e60b9fc02819 (diff)
downloadVirtualBox-svn-d77ddb252b061ba3068cfc276f7608956a828b4b.tar.gz
USB/Darwin: Capture USB devices directly through IOUSBLib, no longer use VBoxUSB.kext (see bugref:9808).
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@87376 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/HostDrivers/VBoxUSB')
-rwxr-xr-xsrc/VBox/HostDrivers/VBoxUSB/darwin/loadusb.sh55
1 files changed, 1 insertions, 54 deletions
diff --git a/src/VBox/HostDrivers/VBoxUSB/darwin/loadusb.sh b/src/VBox/HostDrivers/VBoxUSB/darwin/loadusb.sh
index 34858aee956..71877405e04 100755
--- a/src/VBox/HostDrivers/VBoxUSB/darwin/loadusb.sh
+++ b/src/VBox/HostDrivers/VBoxUSB/darwin/loadusb.sh
@@ -67,57 +67,4 @@ if test -n "$LOADED"; then
echo "${SCRIPT_NAME}.sh: Successfully unloaded $BUNDLE"
fi
-set -e
-
-# Copy the .kext to the symbols directory and tweak the kextload options.
-if test -n "$VBOX_DARWIN_SYMS"; then
- echo "${SCRIPT_NAME}.sh: copying the extension the symbol area..."
- rm -Rf "$VBOX_DARWIN_SYMS/$DRVNAME"
- mkdir -p "$VBOX_DARWIN_SYMS"
- cp -R "$DIR" "$VBOX_DARWIN_SYMS/"
- OPTS="$OPTS -s $VBOX_DARWIN_SYMS/ "
- sync
-fi
-
-# On smbfs, this might succeed just fine but make no actual changes,
-# so we might have to temporarily copy the driver to a local directory.
-if sudo chown -R root:wheel "$DIR" "$DEP_DIR"; then
- OWNER=`/usr/bin/stat -f "%u" "$DIR"`
-else
- OWNER=1000
-fi
-if test "$OWNER" -ne 0; then
- TMP_DIR=/tmp/${SCRIPT_NAME}.tmp
- echo "${SCRIPT_NAME}.sh: chown didn't work on $DIR, using temp location $TMP_DIR/$DRVNAME"
-
- # clean up first (no sudo rm)
- if test -e "$TMP_DIR"; then
- sudo chown -R `whoami` "$TMP_DIR"
- rm -Rf "$TMP_DIR"
- fi
-
- # make a copy and switch over DIR
- mkdir -p "$TMP_DIR/"
- sudo cp -Rp "$DIR" "$TMP_DIR/"
- DIR="$TMP_DIR/$DRVNAME"
-
- # load.sh puts it here.
- DEP_DIR="/tmp/loaddrv.tmp/$DEP_DRVNAME"
-
- # retry
- sudo chown -R root:wheel "$DIR" "$DEP_DIR"
-fi
-
-sudo chmod -R o-rwx "$DIR"
-sync
-if [ "$XNU_VERSION" -ge "10" ]; then
- echo "${SCRIPT_NAME}.sh: loading $DIR... (kextutil $OPTS -d \"$DEP_DIR\" \"$DIR\")"
- sudo kextutil $OPTS -d "$DEP_DIR" "$DIR"
-else
- echo "${SCRIPT_NAME}.sh: loading $DIR... (kextload $OPTS -d \"$DEP_DIR\" \"$DIR\")"
- sudo kextload $OPTS -d "$DEP_DIR" "$DIR"
-fi
-sync
-sudo chown -R `whoami` "$DIR" "$DEP_DIR"
-kextstat | grep org.virtualbox.kext
-
+# We are now done since VBoxUSB.kext is no longer used.