Changeset 48924 in vbox for trunk/src/VBox/Installer/darwin
- Timestamp:
- Oct 7, 2013 1:49:09 PM (11 years ago)
- Location:
- trunk/src/VBox/Installer/darwin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/darwin/DiskImage/VirtualBox_Uninstall.tool
r47894 r48924 1 #!/bin/sh 2 # 1 #!/bin/bash 2 # $Id$ 3 ## @file 3 4 # VirtualBox Uninstaller Script. 5 # 6 4 7 # 5 8 # Copyright (C) 2007-2013 Oracle Corporation … … 46 49 # Note: Do NOT attempt adding directories or filenames with spaces! 47 50 # 48 my_directories="" 49 my_files="" 51 declare -a my_directories 52 declare -a my_files 50 53 51 54 # Users files first 52 test -f "${HOME}/Library/LaunchAgents/org.virtualbox.vboxwebsrv.plist" && my_files="$my_files ${HOME}/Library/LaunchAgents/org.virtualbox.vboxwebsrv.plist" 53 54 test -d /Library/StartupItems/VirtualBox/ && my_directories="$my_directories /Library/StartupItems/VirtualBox/" 55 test -d /Library/Receipts/VBoxStartupItems.pkg/ && my_directories="$my_directories /Library/Receipts/VBoxStartupItems.pkg/" 56 57 test -d /Library/Extensions/VBoxDrv.kext/ && my_directories="$my_directories /Library/Extensions/VBoxDrv.kext/" 58 test -d /Library/Extensions/VBoxUSB.kext/ && my_directories="$my_directories /Library/Extensions/VBoxUSB.kext/" 59 test -d /Library/Extensions/VBoxNetFlt.kext/ && my_directories="$my_directories /Library/Extensions/VBoxNetFlt.kext/" 60 test -d /Library/Extensions/VBoxNetAdp.kext/ && my_directories="$my_directories /Library/Extensions/VBoxNetAdp.kext/" 55 test -f "${HOME}/Library/LaunchAgents/org.virtualbox.vboxwebsrv.plist" && my_files+=("${HOME}/Library/LaunchAgents/org.virtualbox.vboxwebsrv.plist") 56 57 test -d /Library/StartupItems/VirtualBox/ && my_directories+=("/Library/StartupItems/VirtualBox/") 58 test -d /Library/Receipts/VBoxStartupItems.pkg/ && my_directories+=("/Library/Receipts/VBoxStartupItems.pkg/") 59 60 test -d "/Library/Application Support/VirtualBox/VBoxDrv.kext/" && my_directories+=("/Library/Application Support/VirtualBox/VBoxDrv.kext/") 61 test -d "/Library/Application Support/VirtualBox/VBoxUSB.kext/" && my_directories+=("/Library/Application Support/VirtualBox/VBoxUSB.kext/") 62 test -d "/Library/Application Support/VirtualBox/VBoxNetFlt.kext/" && my_directories+=("/Library/Application Support/VirtualBox/VBoxNetFlt.kext/") 63 test -d "/Library/Application Support/VirtualBox/VBoxNetAdp.kext/" && my_directories+=("/Library/Application Support/VirtualBox/VBoxNetAdp.kext/") 64 # Pre 4.3.0rc1 locations: 65 test -d /Library/Extensions/VBoxDrv.kext/ && my_directories+=("/Library/Extensions/VBoxDrv.kext/") 66 test -d /Library/Extensions/VBoxUSB.kext/ && my_directories+=("/Library/Extensions/VBoxUSB.kext/") 67 test -d /Library/Extensions/VBoxNetFlt.kext/ && my_directories+=("/Library/Extensions/VBoxNetFlt.kext/") 68 test -d /Library/Extensions/VBoxNetAdp.kext/ && my_directories+=("/Library/Extensions/VBoxNetAdp.kext/") 61 69 # Tiger support is obsolete, but we leave it here for a clean removing of older 62 70 # VirtualBox versions 63 test -d /Library/Extensions/VBoxDrvTiger.kext/ && my_directories ="$my_directories /Library/Extensions/VBoxDrvTiger.kext/"64 test -d /Library/Extensions/VBoxUSBTiger.kext/ && my_directories ="$my_directories /Library/Extensions/VBoxUSBTiger.kext/"65 test -d /Library/Receipts/VBoxKEXTs.pkg/ && my_directories ="$my_directories /Library/Receipts/VBoxKEXTs.pkg/"66 67 test -f /usr/bin/VirtualBox && my_files ="$my_files /usr/bin/VirtualBox"68 test -f /usr/bin/VBoxManage && my_files ="$my_files /usr/bin/VBoxManage"69 test -f /usr/bin/VBoxVRDP && my_files ="$my_files /usr/bin/VBoxVRDP"70 test -f /usr/bin/VBoxHeadless && my_files ="$my_files /usr/bin/VBoxHeadless"71 test -f /usr/bin/vboxwebsrv && my_files ="$my_files /usr/bin/vboxwebsrv"72 test -f /usr/bin/VBoxBalloonCtrl && my_files ="$my_files /usr/bin/VBoxBalloonCtrl"73 test -f /usr/bin/VBoxAutostart && my_files ="$my_files /usr/bin/VBoxAutostart"74 test -f /usr/bin/vbox-img && my_files ="$my_files /usr/bin/vbox-img"75 test -d /Library/Receipts/VirtualBoxCLI.pkg/ && my_directories ="$my_directories /Library/Receipts/VirtualBoxCLI.pkg/"76 77 test -d /Applications/VirtualBox.app/ && my_directories ="$my_directories /Applications/VirtualBox.app/"78 test -d /Library/Receipts/VirtualBox.pkg/ && my_directories ="$my_directories /Library/Receipts/VirtualBox.pkg/"71 test -d /Library/Extensions/VBoxDrvTiger.kext/ && my_directories+=("/Library/Extensions/VBoxDrvTiger.kext/") 72 test -d /Library/Extensions/VBoxUSBTiger.kext/ && my_directories+=("/Library/Extensions/VBoxUSBTiger.kext/") 73 test -d /Library/Receipts/VBoxKEXTs.pkg/ && my_directories+=("/Library/Receipts/VBoxKEXTs.pkg/") 74 75 test -f /usr/bin/VirtualBox && my_files+=("/usr/bin/VirtualBox") 76 test -f /usr/bin/VBoxManage && my_files+=("/usr/bin/VBoxManage") 77 test -f /usr/bin/VBoxVRDP && my_files+=("/usr/bin/VBoxVRDP") 78 test -f /usr/bin/VBoxHeadless && my_files+=("/usr/bin/VBoxHeadless") 79 test -f /usr/bin/vboxwebsrv && my_files+=("/usr/bin/vboxwebsrv") 80 test -f /usr/bin/VBoxBalloonCtrl && my_files+=("/usr/bin/VBoxBalloonCtrl") 81 test -f /usr/bin/VBoxAutostart && my_files+=("/usr/bin/VBoxAutostart") 82 test -f /usr/bin/vbox-img && my_files+=("/usr/bin/vbox-img") 83 test -d /Library/Receipts/VirtualBoxCLI.pkg/ && my_directories+=("/Library/Receipts/VirtualBoxCLI.pkg/") 84 85 test -d /Applications/VirtualBox.app/ && my_directories+=("/Applications/VirtualBox.app/") 86 test -d /Library/Receipts/VirtualBox.pkg/ && my_directories+=("/Library/Receipts/VirtualBox.pkg/") 79 87 80 88 # legacy 81 test -d /Library/Receipts/VBoxDrv.pkg/ && my_directories ="$my_directories /Library/Receipts/VBoxDrv.pkg/"82 test -d /Library/Receipts/VBoxUSB.pkg/ && my_directories ="$my_directories /Library/Receipts/VBoxUSB.pkg/"89 test -d /Library/Receipts/VBoxDrv.pkg/ && my_directories+=("/Library/Receipts/VBoxDrv.pkg/") 90 test -d /Library/Receipts/VBoxUSB.pkg/ && my_directories+=("/Library/Receipts/VBoxUSB.pkg/") 83 91 84 92 # python stuff 85 93 python_versions="2.3 2.5 2.6 2.7" 86 94 for p in $python_versions; do 87 test -f /Library/Python/$p/site-packages/vboxapi/VirtualBox_constants.py && my_files ="$my_files /Library/Python/$p/site-packages/vboxapi/VirtualBox_constants.py"88 test -f /Library/Python/$p/site-packages/vboxapi/VirtualBox_constants.pyc && my_files ="$my_files /Library/Python/$p/site-packages/vboxapi/VirtualBox_constants.pyc"89 test -f /Library/Python/$p/site-packages/vboxapi/__init__.py && my_files ="$my_files /Library/Python/$p/site-packages/vboxapi/__init__.py"90 test -f /Library/Python/$p/site-packages/vboxapi/__init__.pyc && my_files ="$my_files /Library/Python/$p/site-packages/vboxapi/__init__.pyc"91 test -f /Library/Python/$p/site-packages/vboxapi-1.0-py$p.egg-info && my_files ="$my_files /Library/Python/$p/site-packages/vboxapi-1.0-py$p.egg-info"92 test -d /Library/Python/$p/site-packages/vboxapi/ && my_directories ="$my_directories /Library/Python/$p/site-packages/vboxapi/"95 test -f /Library/Python/$p/site-packages/vboxapi/VirtualBox_constants.py && my_files+=("/Library/Python/$p/site-packages/vboxapi/VirtualBox_constants.py") 96 test -f /Library/Python/$p/site-packages/vboxapi/VirtualBox_constants.pyc && my_files+=("/Library/Python/$p/site-packages/vboxapi/VirtualBox_constants.pyc") 97 test -f /Library/Python/$p/site-packages/vboxapi/__init__.py && my_files+=("/Library/Python/$p/site-packages/vboxapi/__init__.py") 98 test -f /Library/Python/$p/site-packages/vboxapi/__init__.pyc && my_files+=("/Library/Python/$p/site-packages/vboxapi/__init__.pyc") 99 test -f /Library/Python/$p/site-packages/vboxapi-1.0-py$p.egg-info && my_files+=("/Library/Python/$p/site-packages/vboxapi-1.0-py$p.egg-info") 100 test -d /Library/Python/$p/site-packages/vboxapi/ && my_directories+=("/Library/Python/$p/site-packages/vboxapi/") 93 101 done 94 102 … … 97 105 # Note that the unload order is significant. 98 106 # 99 my_kexts="" 107 declare -a my_kexts 100 108 for kext in org.virtualbox.kext.VBoxUSB org.virtualbox.kext.VBoxNetFlt org.virtualbox.kext.VBoxNetAdp org.virtualbox.kext.VBoxDrv; do 101 109 if /usr/sbin/kextstat -b $kext -l | grep -q $kext; then 102 my_kexts ="$my_kexts $kext"110 my_kexts+=("$kext") 103 111 fi 104 112 done … … 113 121 # Did we find anything to uninstall? 114 122 # 115 if test -z "$ my_directories" -a -z "$my_files" -a -z "$my_kexts" -a -z "$my_pkgs"; then123 if test -z "${my_directories[*]}" -a -z "${my_files[*]}" -a -z "${my_kexts[*]}" -a -z "$my_pkgs"; then 116 124 echo "No VirtualBox files, directories, KEXTs or packages to uninstall." 117 125 echo "Done." … … 151 159 # and get the user's consent before continuing. 152 160 # 153 if test -n "$ my_files" -o -n "$my_directories"; then161 if test -n "${my_files[*]}" -o -n "${my_directories[*]}"; then 154 162 echo "The following files and directories (bundles) will be removed:" 155 for file in $my_files; do echo " $file"; done 156 for dir in $my_directories; do echo " $dir"; done 157 fi 158 if test -n "$my_kexts"; then 163 for file in "${my_files[@]}"; do echo " $file"; done 164 for dir in "${my_directories[@]}"; do echo " $dir"; done 165 echo "" 166 fi 167 if test -n "${my_kexts[*]}"; then 159 168 echo "And the following KEXTs will be unloaded:" 160 for kext in $my_kexts; do echo " $kext"; done 169 for kext in "${my_kexts[@]}"; do echo " $kext"; done 170 echo "" 161 171 fi 162 172 if test -n "$my_pkgs"; then 163 173 echo "And the traces of following packages will be removed:" 164 174 for kext in $my_pkgs; do echo " $kext"; done 165 fi 166 echo "" 175 echo "" 176 fi 167 177 168 178 if test "$my_default_prompt" != "Yes"; then … … 193 203 echo "" 194 204 195 if test -n "$ my_files" -o -n "$my_directories"; then196 /usr/bin/sudo -p "Please enter %u's password:" /bin/rm -Rf $my_files $my_directories205 if test -n "${my_files[*]}" -o -n "${my_directories[*]}"; then 206 /usr/bin/sudo -p "Please enter %u's password:" /bin/rm -Rf "${my_files[@]}" "${my_directories[@]}" 197 207 my_rc=$? 198 208 if test "$my_rc" -ne 0; then … … 207 217 208 218 my_rc=0 209 for kext in $my_kexts; do219 for kext in "${my_kexts[@]}"; do 210 220 echo unloading $kext 211 221 /usr/bin/sudo -p "Please enter %u's password (unloading $kext):" /sbin/kextunload -m $kext -
trunk/src/VBox/Installer/darwin/Makefile.kmk
r48912 r48924 270 270 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.res \ 271 271 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.res/English.lproj 272 $(MKDIR) -p -m 1775 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/Library273 272 $(MKDIR) -p -m 0755 \ 274 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root /Library/Extensions\273 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root \ 275 274 $(foreach kext,$(VBOX_DI_KEXTS), \ 276 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/ Library/Extensions/$(kext).kext \277 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/ Library/Extensions/$(kext).kext/Contents \278 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/ Library/Extensions/$(kext).kext/Contents/MacOS )275 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/$(kext).kext \ 276 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/$(kext).kext/Contents \ 277 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/$(kext).kext/Contents/MacOS ) 279 278 @# Copy the common files (Info.plist). 280 279 $(foreach kext,$(VBOX_DI_KEXTS), \ 281 $(NLTAB)$(INSTALL) -m 0644 $(VBOX_PATH_DIST)/$(kext).kext/Contents/Info.plist $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/ Library/Extensions/$(kext).kext/Contents/)280 $(NLTAB)$(INSTALL) -m 0644 $(VBOX_PATH_DIST)/$(kext).kext/Contents/Info.plist $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/$(kext).kext/Contents/) 282 281 @# Copy the binaries and invoking lipo. 283 282 ifdef VBOX_WITH_COMBINED_PACKAGE … … 286 285 $(VBOX_PATH_DIST_32)/$(kext).kext/Contents/MacOS/$(kext) \ 287 286 $(VBOX_PATH_DIST_64)/$(kext).kext/Contents/MacOS/$(kext) \ 288 -output $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/ Library/Extensions/$(kext).kext/Contents/MacOS/$(kext))287 -output $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/$(kext).kext/Contents/MacOS/$(kext)) 289 288 else 290 289 $(foreach kext,$(VBOX_DI_KEXTS), \ 291 $(NLTAB)$(INSTALL) -m 0755 $(VBOX_PATH_DIST)/$(kext).kext/Contents/MacOS/$(kext) $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/ Library/Extensions/$(kext).kext/Contents/MacOS/)290 $(NLTAB)$(INSTALL) -m 0755 $(VBOX_PATH_DIST)/$(kext).kext/Contents/MacOS/$(kext) $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/$(kext).kext/Contents/MacOS/) 292 291 endif 293 292 @# Signed the kext bundles. 294 293 ifdef VBOX_SIGNING_MODE 295 294 $(foreach kext,$(VBOX_DI_KEXTS) \ 296 ,$(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/ Library/Extensions/$(kext).kext/Contents/MacOS/$(kext),org.virtualbox.app.kext.macos.$(kext)) )295 ,$(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/$(kext).kext/Contents/MacOS/$(kext),org.virtualbox.app.kext.$(kext)) ) 297 296 $(foreach kext,$(VBOX_DI_KEXTS), \ 298 $(NLTAB)$(call VBOX_SIGN_BUNDLE_FN,$(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/Library/Extensions/$(kext).kext,) ) 297 $(NLTAB)$(call VBOX_SIGN_BUNDLE_FN,$(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/$(kext).kext,org.virtualbox.app.kext.$(kext)) ) 298 $(foreach kext,$(VBOX_DI_KEXTS), $(NLTAB)codesign --verify --verbose 1 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/$(kext).kext ) 299 299 endif 300 300 @# Set the correct owners. 301 sudo chown root:admin $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/Library 302 sudo chown -R root:wheel $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/Library/Extensions 301 sudo chown -R root:wheel $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/ 303 302 @# Do keyword replacement in the package info and description files. 304 303 $(SED) \ … … 316 315 @# Build the package. 317 316 $(VBOX_PKGBUILD) \ 318 --root $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/ Library/Extensions/\317 --root $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/ \ 319 318 --component-plist $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.desc/PkgBuildComponent.plist \ 320 319 --script $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.res \ 321 320 --identifier org.virtualbox.pkg.vboxkexts \ 322 321 --version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \ 323 --install-location /Library/Extensions/\322 --install-location "/Library/Application Support/VirtualBox" \ 324 323 --ownership preserve \ 325 324 $(if $(VBOX_MACOSX_INSTALLER_SIGN),--sign "$(VBOX_MACOSX_INSTALLER_SIGN)",) \ -
trunk/src/VBox/Installer/darwin/VBoxKEXTs/postflight
r48919 r48924 1 1 #!/bin/sh 2 # $Id$ 3 ## @file 4 # Reloads the new kernel extension at the end of installation. 5 # 2 6 3 7 # 4 # Copyright (C) 2007-201 0Oracle Corporation8 # Copyright (C) 2007-2013 Oracle Corporation 5 9 # 6 10 # This file is part of VirtualBox Open Source Edition (OSE), as … … 35 39 sync 36 40 set -e 37 kextload /Library/Extensions/VBoxDrv.kext38 kextload -d /Library/Extensions/VBoxDrv.kext /Library/Extensions/VBoxUSB.kext39 kextload -d /Library/Extensions/VBoxDrv.kext /Library/Extensions/VBoxNetFlt.kext40 kextload -d /Library/Extensions/VBoxDrv.kext /Library/Extensions/VBoxNetAdp.kext41 kextload '/Library/Application Support/VirtualBox/VBoxDrv.kext' 42 kextload -d '/Library/Application Support/VirtualBox/VBoxDrv.kext' '/Library/Application Support/VirtualBox/VBoxUSB.kext' 43 kextload -d '/Library/Application Support/VirtualBox/VBoxDrv.kext' '/Library/Application Support/VirtualBox/VBoxNetFlt.kext' 44 kextload -d '/Library/Application Support/VirtualBox/VBoxDrv.kext' '/Library/Application Support/VirtualBox/VBoxNetAdp.kext' 41 45 -
trunk/src/VBox/Installer/darwin/VBoxStartupItems/VirtualBox/Resources/English.lproj/Localizable.strings
r33550 r48924 3 3 <plist version="0.9"> 4 4 <dict> 5 <key>VirtualBox Support Driver</key> <string>VirtualBox Support Driver</string>6 <key>Loading VBoxDrv.kext</key> <string>Loading VBoxDrv.kext</string>7 <key>Loading VBoxUSB.kext</key> <string>Loading VBoxUSB.kext</string>8 <key>Loading VBoxNetFlt.kext</key> <string>Loading VBoxNetFlt.kext</string>9 <key>Loading VBoxNetAdp.kext</key> <string>Loading VBoxNetAdp.kext</string>10 <key>Unloading VBoxDrv.kext</key> <string>Unloading VBoxDrv.kext</string>11 <key>Unloading VBoxUSB.kext</key> <string>Unloading VBoxUSB.kext</string>12 <key>Unloading VBoxNetFlt.kext</key> <string>Unloading VBoxNetFlt.kext</string>13 <key>Unloading VBoxNetAdp.kext</key> <string>Unloading VBoxNetAdp.kext</string>14 <key>Error: /Library/ Extensions/VBoxDrv.kext is missing</key> <string>Error: /Library/Extensions/VBoxDrv.kext is missing</string>15 <key>Error: /Library/ Extensions/VBoxUSB.kext is missing</key> <string>Error: /Library/Extensions/VBoxUSB.kext is missing</string>16 <key>Error: /Library/ Extensions/VBoxNetFlt.kext is missing</key> <string>Error: /Library/Extensions/VBoxNetFlt.kext is missing</string>17 <key>Error: /Library/ Extensions/VBoxNetAdp.kext is missing</key> <string>Error: /Library/Extensions/VBoxNetAdp.kext is missing</string>18 <key>Error: VBoxDrv.kext is already loaded</key> <string>Error: VBoxDrv.kext is already loaded</string>19 <key>Error: VBoxUSB.kext is already loaded</key> <string>Error: VBoxUSB.kext is already loaded</string>20 <key>Error: VBoxNetFlt.kext is already loaded</key> <string>Error: VBoxNetFlt.kext is already loaded</string>21 <key>Error: VBoxNetAdp.kext is already loaded</key> <string>Error: VBoxNetAdp.kext is already loaded</string>22 <key>Error: Failed to load /Library/ Extensions/VBoxDrv.kext</key> <string>Error: Failed to load /Library/Extensions/VBoxDrv.kext</string>23 <key>Error: Failed to load /Library/ Extensions/VBoxUSB.kext</key> <string>Error: Failed to load /Library/Extensions/VBoxUSB.kext</string>24 <key>Error: Failed to load /Library/ Extensions/VBoxNetFlt.kext</key> <string>Error: Failed to load /Library/Extensions/VBoxNetFlt.kext</string>25 <key>Error: Failed to load /Library/ Extensions/VBoxNetAdp.kext</key> <string>Error: Failed to load /Library/Extensions/VBoxNetAdp.kext</string>26 <key>Error: Failed to unload VBoxDrv.kext</key> <string>Error: Failed to unload VBoxDrv.kext</string>27 <key>Error: Failed to unload VBoxUSB.kext</key> <string>Error: Failed to unload VBoxUSB.kext</string>28 <key>Error: Failed to unload VBoxNetFlt.kext</key> <string>Error: Failed to unload VBoxNetFlt.kext</string>29 <key>Error: Failed to unload VBoxNetAdp.kext</key> <string>Error: Failed to unload VBoxNetAdp.kext</string>5 <key>VirtualBox Support Driver</key> <string>VirtualBox Support Driver</string> 6 <key>Loading VBoxDrv.kext</key> <string>Loading VBoxDrv.kext</string> 7 <key>Loading VBoxUSB.kext</key> <string>Loading VBoxUSB.kext</string> 8 <key>Loading VBoxNetFlt.kext</key> <string>Loading VBoxNetFlt.kext</string> 9 <key>Loading VBoxNetAdp.kext</key> <string>Loading VBoxNetAdp.kext</string> 10 <key>Unloading VBoxDrv.kext</key> <string>Unloading VBoxDrv.kext</string> 11 <key>Unloading VBoxUSB.kext</key> <string>Unloading VBoxUSB.kext</string> 12 <key>Unloading VBoxNetFlt.kext</key> <string>Unloading VBoxNetFlt.kext</string> 13 <key>Unloading VBoxNetAdp.kext</key> <string>Unloading VBoxNetAdp.kext</string> 14 <key>Error: /Library/Application Support/VirtualBox/VBoxDrv.kext is missing</key> <string>Error: /Library/Application Support/VirtualBox/VBoxDrv.kext is missing</string> 15 <key>Error: /Library/Application Support/VirtualBox/VBoxUSB.kext is missing</key> <string>Error: /Library/Application Support/VirtualBox/VBoxUSB.kext is missing</string> 16 <key>Error: /Library/Application Support/VirtualBox/VBoxNetFlt.kext is missing</key> <string>Error: /Library/Application Support/VirtualBox/VBoxNetFlt.kext is missing</string> 17 <key>Error: /Library/Application Support/VirtualBox/VBoxNetAdp.kext is missing</key> <string>Error: /Library/Application Support/VirtualBox/VBoxNetAdp.kext is missing</string> 18 <key>Error: VBoxDrv.kext is already loaded</key> <string>Error: VBoxDrv.kext is already loaded</string> 19 <key>Error: VBoxUSB.kext is already loaded</key> <string>Error: VBoxUSB.kext is already loaded</string> 20 <key>Error: VBoxNetFlt.kext is already loaded</key> <string>Error: VBoxNetFlt.kext is already loaded</string> 21 <key>Error: VBoxNetAdp.kext is already loaded</key> <string>Error: VBoxNetAdp.kext is already loaded</string> 22 <key>Error: Failed to load /Library/Application Support/VirtualBox/VBoxDrv.kext</key> <string>Error: Failed to load /Library/Application Support/VirtualBox/VBoxDrv.kext</string> 23 <key>Error: Failed to load /Library/Application Support/VirtualBox/VBoxUSB.kext</key> <string>Error: Failed to load /Library/Application Support/VirtualBox/VBoxUSB.kext</string> 24 <key>Error: Failed to load /Library/Application Support/VirtualBox/VBoxNetFlt.kext</key> <string>Error: Failed to load /Library/Application Support/VirtualBox/VBoxNetFlt.kext</string> 25 <key>Error: Failed to load /Library/Application Support/VirtualBox/VBoxNetAdp.kext</key> <string>Error: Failed to load /Library/Application Support/VirtualBox/VBoxNetAdp.kext</string> 26 <key>Error: Failed to unload VBoxDrv.kext</key> <string>Error: Failed to unload VBoxDrv.kext</string> 27 <key>Error: Failed to unload VBoxUSB.kext</key> <string>Error: Failed to unload VBoxUSB.kext</string> 28 <key>Error: Failed to unload VBoxNetFlt.kext</key> <string>Error: Failed to unload VBoxNetFlt.kext</string> 29 <key>Error: Failed to unload VBoxNetAdp.kext</key> <string>Error: Failed to unload VBoxNetAdp.kext</string> 30 30 </dict> 31 31 </plist> -
trunk/src/VBox/Installer/darwin/VBoxStartupItems/VirtualBox/VirtualBox
r31673 r48924 1 1 #!/bin/sh 2 # $Id$ 3 ## @file 4 # Startup service for loading the kernel extensions and select the set of VBox 5 # binaries that matches the kernel architecture. 6 # 2 7 3 8 # 4 # Copyright (C) 2007-201 0Oracle Corporation9 # Copyright (C) 2007-2013 Oracle Corporation 5 10 # 6 11 # This file is part of VirtualBox Open Source Edition (OSE), as … … 49 54 # Check that all the directories exist first. 50 55 # 51 if [ ! -d /Library/Extensions/${VBOXDRV}.kext]; then52 ConsoleMessage "Error: /Library/ Extensions/${VBOXDRV}.kext is missing"56 if [ ! -d "/Library/Application Support/VirtualBox/${VBOXDRV}.kext" ]; then 57 ConsoleMessage "Error: /Library/Application Support/VirtualBox/${VBOXDRV}.kext is missing" 53 58 VBOX_RC=1 54 59 fi 55 if [ ! -d /Library/Extensions/${VBOXUSB}.kext]; then56 ConsoleMessage "Error: /Library/ Extensions/${VBOXUSB}.kext is missing"60 if [ ! -d "/Library/Application Support/VirtualBox/${VBOXUSB}.kext" ]; then 61 ConsoleMessage "Error: /Library/Application Support/VirtualBox/${VBOXUSB}.kext is missing" 57 62 VBOX_RC=1 58 63 fi 59 if [ ! -d /Library/Extensions/VBoxNetFlt.kext]; then60 ConsoleMessage "Error: /Library/ Extensions/VBoxNetFlt.kext is missing"64 if [ ! -d "/Library/Application Support/VirtualBox/VBoxNetFlt.kext" ]; then 65 ConsoleMessage "Error: /Library/Application Support/VirtualBox/VBoxNetFlt.kext is missing" 61 66 VBOX_RC=1 62 67 fi 63 if [ ! -d /Library/Extensions/VBoxNetAdp.kext]; then64 ConsoleMessage "Error: /Library/ Extensions/VBoxNetAdp.kext is missing"68 if [ ! -d "/Library/Application Support/VirtualBox/VBoxNetAdp.kext" ]; then 69 ConsoleMessage "Error: /Library/Application Support/VirtualBox/VBoxNetAdp.kext is missing" 65 70 VBOX_RC=1 66 71 fi … … 72 77 if [ $VBOX_RC -eq 0 ]; then 73 78 if kextstat -lb org.virtualbox.kext.VBoxDrv 2>&1 | grep -q org.virtualbox.kext.VBoxDrv; then 74 ConsoleMessage -v"Error: ${VBOXDRV}.kext is already loaded"79 ConsoleMessage "Error: ${VBOXDRV}.kext is already loaded" 75 80 VBOX_RC=1 76 81 fi 77 82 if kextstat -lb org.virtualbox.kext.VBoxUSB 2>&1 | grep -q org.virtualbox.kext.VBoxUSB; then 78 ConsoleMessage -v"Error: ${VBOXUSB}.kext is already loaded"83 ConsoleMessage "Error: ${VBOXUSB}.kext is already loaded" 79 84 VBOX_RC=1 80 85 fi 81 86 if kextstat -lb org.virtualbox.kext.VBoxNetFlt 2>&1 | grep -q org.virtualbox.kext.VBoxNetFlt; then 82 ConsoleMessage -v"Error: VBoxNetFlt.kext is already loaded"87 ConsoleMessage "Error: VBoxNetFlt.kext is already loaded" 83 88 VBOX_RC=1 84 89 fi 85 90 if kextstat -lb org.virtualbox.kext.VBoxNetAdp 2>&1 | grep -q org.virtualbox.kext.VBoxNetAdp; then 86 ConsoleMessage -v"Error: VBoxNetAdp.kext is already loaded"91 ConsoleMessage "Error: VBoxNetAdp.kext is already loaded" 87 92 VBOX_RC=1 88 93 fi … … 94 99 if [ $VBOX_RC -eq 0 ]; then 95 100 ConsoleMessage "Loading ${VBOXDRV}.kext" 96 if ! kextload /Library/Extensions/${VBOXDRV}.kext; then97 ConsoleMessage "Error: Failed to load /Library/ Extensions/${VBOXDRV}.kext"101 if ! kextload "/Library/Application Support/VirtualBox/${VBOXDRV}.kext"; then 102 ConsoleMessage "Error: Failed to load /Library/Application Support/VirtualBox/${VBOXDRV}.kext" 98 103 VBOX_RC=1 99 104 fi 100 105 101 106 ConsoleMessage "Loading ${VBOXUSB}.kext" 102 if ! kextload -d /Library/Extensions/${VBOXDRV}.kext /Library/Extensions/${VBOXUSB}.kext; then103 ConsoleMessage "Error: Failed to load /Library/ Extensions/${VBOXUSB}.kext"107 if ! kextload -d "/Library/Application Support/VirtualBox/${VBOXDRV}.kext" "/Library/Application Support/VirtualBox/${VBOXUSB}.kext"; then 108 ConsoleMessage "Error: Failed to load /Library/Application Support/VirtualBox/${VBOXUSB}.kext" 104 109 VBOX_RC=1 105 110 fi 106 111 107 112 ConsoleMessage "Loading VBoxNetFlt.kext" 108 if ! kextload -d /Library/Extensions/${VBOXDRV}.kext /Library/Extensions/VBoxNetFlt.kext; then109 ConsoleMessage "Error: Failed to load /Library/ Extensions/VBoxNetFlt.kext"113 if ! kextload -d "/Library/Application Support/VirtualBox/${VBOXDRV}.kext" "/Library/Application Support/VirtualBox/VBoxNetFlt.kext"; then 114 ConsoleMessage "Error: Failed to load /Library/Application Support/VirtualBox/VBoxNetFlt.kext" 110 115 VBOX_RC=1 111 116 fi 112 117 113 118 ConsoleMessage "Loading VBoxNetAdp.kext" 114 if ! kextload -d /Library/Extensions/${VBOXDRV}.kext /Library/Extensions/VBoxNetAdp.kext; then115 ConsoleMessage "Error: Failed to load /Library/ Extensions/VBoxNetAdp.kext"119 if ! kextload -d "/Library/Application Support/VirtualBox/${VBOXDRV}.kext" "/Library/Application Support/VirtualBox/VBoxNetAdp.kext"; then 120 ConsoleMessage "Error: Failed to load /Library/Application Support/VirtualBox/VBoxNetAdp.kext" 116 121 VBOX_RC=1 117 122 fi … … 145 150 ConsoleMessage "Unloading ${VBOXUSB}.kext" 146 151 if ! kextunload -m org.virtualbox.kext.VBoxUSB; then 147 ConsoleMessage -v"Error: Failed to unload VBoxUSB.kext"152 ConsoleMessage "Error: Failed to unload VBoxUSB.kext" 148 153 VBOX_RC=1 149 154 fi … … 153 158 ConsoleMessage "Unloading VBoxNetFlt.kext" 154 159 if ! kextunload -m org.virtualbox.kext.VBoxNetFlt; then 155 ConsoleMessage -v"Error: Failed to unload VBoxNetFlt.kext"160 ConsoleMessage "Error: Failed to unload VBoxNetFlt.kext" 156 161 VBOX_RC=1 157 162 fi … … 161 166 ConsoleMessage "Unloading VBoxNetAdp.kext" 162 167 if ! kextunload -m org.virtualbox.kext.VBoxNetAdp; then 163 ConsoleMessage -v"Error: Failed to unload VBoxNetAdp.kext"168 ConsoleMessage "Error: Failed to unload VBoxNetAdp.kext" 164 169 VBOX_RC=1 165 170 fi … … 170 175 ConsoleMessage "Unloading ${VBOXDRV}.kext" 171 176 if ! kextunload -m org.virtualbox.kext.VBoxDrv; then 172 ConsoleMessage -v"Error: Failed to unload VBoxDrv.kext"177 ConsoleMessage "Error: Failed to unload VBoxDrv.kext" 173 178 VBOX_RC=1 174 179 fi
Note:
See TracChangeset
for help on using the changeset viewer.