VirtualBox

Ignore:
Timestamp:
Jul 25, 2012 11:27:32 AM (12 years ago)
Author:
vboxsync
Message:

Autostart/darwin: bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/darwin/VirtualBox/VBoxAutostartDarwin.sh

    r42379 r42384  
    2828
    2929        # Check for known home directories and shells for daemons
    30         if [[   "${HOMEDIR}" == "/var/empty" || "${HOMEDIR}" == "/dev/null"
     30        if [[   "${HOMEDIR}" == "/var/empty" || "${HOMEDIR}" == "/dev/null" || "${HOMEDIR}" == "/var/root"
    3131             || "${USERSHELL}" == "/usr/bin/false" || "${USERSHELL}" == "/dev/null" || "${USERSHELL}" == "/usr/sbin/uucico" ]]
    3232        then
     
    3535
    3636        # Start the daemon
    37         su ${user} -c '/Applications/VirtualBox.app/Contents/MacOS/VBoxAutostart --start --background --config /etc/vbox/autostart.cfg'
     37        su ${user} -c "/Applications/VirtualBox.app/Contents/MacOS/VBoxAutostart --quiet --start --background --config ${1}"
    3838
    3939    done
     
    4141
    4242case $1 in
    43     --start) vboxStartAllUserVms;;
     43    --start) vboxStartAllUserVms ${2};;
    4444          *) echo "Unknown option ${1}";;
    4545esac
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