VirtualBox

Ignore:
Timestamp:
Oct 16, 2015 2:37:49 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103475
Message:

VBoxKEXTs/postflight: Make sure the '/Library/LaunchDaemons/' directory exists before trying to symlink our startup plist into it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/darwin/VBoxKEXTs/postflight

    r56299 r58281  
    4343# Install the launchd script.
    4444#
     45# Make sure "/Library/LaunchDaemons/ exists first as some uninstallers/users
     46# may be silly enough to remove it.  We assume that /Library exists and will
     47# not try create it because it normally has extra ACLs.
     48#
     49if [ ! -e "/Library/LaunchDaemons/" ]; then
     50    set -e
     51    mkdir "/Library/LaunchDaemons"
     52    chmod 755 "/Library/LaunchDaemons"
     53    chown root:wheel "/Library/LaunchDaemons"
     54    set +e
     55fi
    4556rm -vf "/Library/LaunchDaemons/org.virtualbox.startup.plist"
    4657set -e
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette