Advertisement
MichalMMac

lastscript

Aug 1st, 2015
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.65 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Turn off Wi-fi -> man airportd || /Library/Preferences/SystemConfiguration/preferences.plist
  4. /usr/sbin/networksetup -setairportpower airport off
  5. /usr/libexec/airportd en1 prefs RequireAdminIBSS=YES RequireAdminNetworkChange=YES RequireAdminPowerToggle=YES
  6.  
  7. # Turn off Apple Software Update
  8. /usr/sbin/softwareupdate --schedule off
  9.  
  10. # Login Window
  11. /usr/bin/defaults write /Library/Preferences/com.apple.loginwindow SHOWFULLNAME -bool true
  12. /usr/bin/defaults write /Library/Preferences/com.apple.loginwindow showInputMenu -bool true
  13.  
  14. # Setup Munki -> https://code.google.com/p/munki/wiki/configuration
  15. # Note: Will be overriden by configuration profile
  16. /usr/bin/defaults write /Library/Preferences/ManagedInstalls SoftwareRepoURL "http://munki.ucebny"
  17. /usr/bin/defaults write /Library/Preferences/ManagedInstalls ClientIdentifier applelab_production
  18.  
  19. /usr/bin/defaults write /Library/Preferences/ManagedInstalls SuppressUserNotification true
  20. /usr/bin/defaults write /Library/Preferences/ManagedInstalls InstallRequiresLogout true
  21. /usr/bin/defaults write /Library/Preferences/ManagedInstalls SuppressStopButtonOnInstall true
  22.  
  23. /usr/bin/defaults write /Library/Preferences/ManagedInstalls InstallAppleSoftwareUpdates true
  24.  
  25. # Will be done with profiles (Profile manager)
  26. #/usr/bin/defaults write /Library/Preferences/ManagedInstalls SoftwareUpdateServerURL "http://reposado.ucebny/content/catalogs/others/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1_testing.sucatalog"
  27.  
  28. # Activate check at next startup -> https://code.google.com/p/munki/wiki/BootstrappingWithMunki
  29. /usr/bin/touch /Users/Shared/.com.googlecode.munki.checkandinstallatstartup
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement