![]() ![]() you have the folder ~/Desktop/sleepwatcher_2.2 with this ReadMe as ~/Desktop/sleepwatcher_2.2/ReadMe.rtf. #Download sleepwatcher mac updateKill the running daemon and remove the old startup item: $ sudo killall sleepwatcher $ sudo rm -rf /Library/StartupItems/SleepWatcher Copy the new binary and man page: $ sudo cp ~/Desktop/sleepwatcher_2.2/sleepwatcher /usr/local/sbin $ sudo cp ~/Desktop/sleepwatcher_2.2/sleepwatcher.8 /usr/local/share/man/man8 Copy the launchd agent configuration and the updated rc scripts (when you have modified them, compare your version and the new one and update them as required): $ sudo cp ~/Desktop/sleepwatcher_2.2/config/de. /Library/LaunchDaemons/de. $ sudo cp ~/Desktop/sleepwatcher_2.2/config/rc.* /etc Load the launchd agent configuration, this starts the SleepWatcher daemon: $ sudo launchctl load /Library/LaunchDaemons/de. Remove the old global rc scripts: $ sudo rm -f /etc/rc.sleep /etc/rc.wakeup Copy the launchd agent configuration for a local user instance of SleepWatcher: $ mkdir ~/Library/LaunchAgents $ cp ~/Desktop/sleepwatcher_2.2/config/de. ~/Library/LaunchAgents/de. Load the local launchd agent configuration, this starts the SleepWatcher daemon with your user account: $ launchctl load ~/Library/LaunchAgents/de. For the following steps, we assume that you have unpacked the SleepWatcher 2.2 download on your desktop, i. When you reboot the Mac, SleepWatcher is started automatically via launchd. wakeup in their home directories that are executed when the Mac goes to sleep mode or wakes up. Now SleepWatcher runs again in an environment that matches the version 2.0 environment: users of the Mac can create executable files. For the following steps, we assume that you have unpacked the SleepWatcher 2.2 download on your desktop, i.e. ![]() Please make sure the directories are right, you probably don't want to leave it on your Desktop! Check config/de. to make sure it links to the correct shell script. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |