Cynosure.X International LLC

Wiki

Older Revision of Un-Installing SleepWatcher on Mac OS X

Revision: 20090109_111134 | All Revisions


Un-Installing SleepWatcher on Mac OS X

SleepWatcher does not facilitate automated un-install. Instead, you have to manually uninstall all of the files distributed throughout Mac OS X. The "Fix for the no DHCP ethernet on wake from sleep problem" thread defines a set of manual steps you can take to un-install SleepWatcher. It's shown below for your convenience.

  go to terminal
  sudo rm /usr/local/sbin/sleepwatcher
  sudo rm /usr/local/share/man/man8/sleepwatcher.8
  sudo rm /etc/rc.sleep
  sudo rm /etc/rc.wakeup

  go to finder delete: /Library/StartupItems/SleepWatcher

Comments & Discussion >>

Automated Un-Install Script

You can modify the above steps slightly, place it in a script file, and automate the entire process. The following are the code that goes into the script file.

  sudo rm /usr/local/sbin/sleepwatcher
  sudo rm /usr/local/share/man/man8/sleepwatcher.8
  sudo rm /etc/rc.sleep
  sudo rm /etc/rc.wakeup
  sudo rm -r /Library/StartupItems/SleepWatcher

Note that this automated script does no error checking. It's your responsibility to make sure that SleepWatcher is actually installed on your system and all of the path, shown in the code above, exist. The last line of code is particularly dangerous, as it recursively delete everything defined in the path. Therefore, you must be sure that the path in the last line of code exists.

Comments & Discussion >>

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

72 Users Online

Hacking Digital Cameras
Fun for Photographers


Get Our

Memecoins!



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.