- Timestamp:
- Oct 27, 2021 8:21:09 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/darwin/VBoxKEXTs/VirtualBoxStartup.sh
r86306 r92114 71 71 VBOXDRV="VBoxDrv" 72 72 VBOXUSB="VBoxUSB" 73 MACOS_VERS =$(sw_vers -productVersion)73 MACOS_VERSION_MAJOR=$(sw_vers -productVersion | /usr/bin/sed -e 's/^\([0-9]*\).*$/\1/') 74 74 75 75 # … … 98 98 # 99 99 if [ $VBOX_RC -eq 0 ]; then 100 if [[ ${MACOS_VERS } != 11.*]]; then100 if [[ ${MACOS_VERSION_MAJOR} -lt 11 ]]; then 101 101 if kextstat -lb org.virtualbox.kext.VBoxDrv 2>&1 | grep -q org.virtualbox.kext.VBoxDrv; then 102 102 ConsoleMessage "Error: ${VBOXDRV}.kext is already loaded" … … 143 143 # 144 144 if [ $VBOX_RC -eq 0 ]; then 145 if [[ ${MACOS_VERS } != 11.*]]; then145 if [[ ${MACOS_VERSION_MAJOR} -lt 11 ]]; then 146 146 ConsoleMessage "Loading ${VBOXDRV}.kext" 147 147 if ! kextload "/Library/Application Support/VirtualBox/${VBOXDRV}.kext"; then … … 221 221 VBOXDRV="VBoxDrv" 222 222 VBOXUSB="VBoxUSB" 223 MACOS_VERS =$(sw_vers -productVersion)224 225 if [[ ${MACOS_VERS } != 11.*]]; then223 MACOS_VERSION_MAJOR=$(sw_vers -productVersion | /usr/bin/sed -e 's/^\([0-9]*\).*$/\1/') 224 225 if [[ ${MACOS_VERSION_MAJOR} -lt 11 ]]; then 226 226 if kextstat -lb org.virtualbox.kext.VBoxUSB 2>&1 | grep -q org.virtualbox.kext.VBoxUSB; then 227 227 ConsoleMessage "Unloading ${VBOXUSB}.kext"
Note:
See TracChangeset
for help on using the changeset viewer.