rm /Users/Shared/.initswupd_inprog rm /Library/LaunchDaemons/ defaults delete /Library/Preferences/ LoginwindowText fielse # If the 'updates in progress' marker is not there, prep the machine. if then # If there are no more updates available, clean up the marker, launchdaemon and login window text. # Softwareupdate returns 3 lines if there are no updates. softwareupdate -ai # Run softwareupdate again to see if there's anything left. pmset -a sleep 0 force # Install all available software updates. # Temporarily prevent machine from sleeping. It must be run as root.# To use in its current form, name the script initswupdater.sh and put it in /Library/Management.# Tested in both Tiger and Leopard.if then # If the 'updates in progress' marker is there, run the updates. #!/bin/sh# This script will run softwareupdate, install all available updates, reboot and repeat# until no more updates are available.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |