Create a gist now

Instantly share code, notes, and snippets.

@tbridge /DEPConfig.sh Secret
Last active May 17, 2017

What would you like to do?
#!/bin/bash
## First Boot for Technolutionary DEP Setup
## Goals: Having configured Munki via Profile and installed tools via InstallApplications, activate Munki and launch the Managed Software Center Application to begin downloads.
## Secondary Goals: Inform the user what's happening.
echo "Command: MainText: Welcome to your new Technolutionary machine. We've got a few more steps to get your machine ready for first use. Hang tight and watch the screen. Call us know if you have trouble at 571.243.3135." >> /var/tmp/depnotify.log
echo "Command: WindowTitle: Welcome to Technolutionary" >> /var/tmp/depnotify.log
chmod 644 /var/tmp/depnotify.log
open /Applications/DEPNotify.app
sleep 5
echo "Status: Starting First Operations" >> /var/tmp/depnotify.log
sleep 5
echo "Status: Loading Munki LaunchDaemons" >> /var/tmp/depnotify.log
/bin/launchctl load /Library/LaunchDaemons/com.googlecode.munki.managedsoftwareupdate-check.plist
/bin/launchctl load /Library/LaunchDaemons/com.googlecode.munki.managedsoftwareupdate-install.plist
/bin/launchctl load /Library/LaunchDaemons/com.googlecode.munki.managedsoftwareupdate-manualcheck.plist
sleep 5
echo "Status: Launching Managed Software Center" >> /var/tmp/depnotify.log
/usr/bin/open -a /Applications/Managed\ Software\ Center.app
sleep 10
echo "Command: Notification: Software Download Beginning" >> /var/tmp/depnotify.log
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment