Changeset 88527 in vbox for trunk/src/VBox/Installer/darwin
- Timestamp:
- Apr 15, 2021 11:46:26 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/darwin/VirtualBox/VBoxAutostartDarwin.sh
r82968 r88527 24 24 for user in `dscl . -list /Users` 25 25 do 26 HOMEDIR=`dscl . -read /Users/ ${user} | grepNFSHomeDirectory | sed 's/NFSHomeDirectory: //g'`27 USERSHELL=`dscl . -read /Users/ ${user} | grepUserShell | sed 's/UserShell: //g'`26 HOMEDIR=`dscl . -read /Users/"${user}" NFSHomeDirectory | sed 's/NFSHomeDirectory: //g'` 27 USERSHELL=`dscl . -read /Users/"${user}" UserShell | sed 's/UserShell: //g'` 28 28 29 29 # Check for known home directories and shells for daemons … … 37 37 start) 38 38 # Start the daemon 39 su ${user}-c "/Applications/VirtualBox.app/Contents/MacOS/VBoxAutostart --quiet --start --background --config ${CONFIG}"39 su "${user}" -c "/Applications/VirtualBox.app/Contents/MacOS/VBoxAutostart --quiet --start --background --config ${CONFIG}" 40 40 ;; 41 41 stop) 42 # St artthe daemon43 su ${user}-c "/Applications/VirtualBox.app/Contents/MacOS/VBoxAutostart --quiet --stop --config ${CONFIG}"42 # Stop the daemon 43 su "${user}" -c "/Applications/VirtualBox.app/Contents/MacOS/VBoxAutostart --quiet --stop --config ${CONFIG}" 44 44 ;; 45 45 *)
Note:
See TracChangeset
for help on using the changeset viewer.