reload 440 B

123456789101112
  1. #!/bin/sh
  2. ls /etc/rc.d | while read a; do /etc/rc.d/$a; done
  3. sleep 1
  4. launchctl unload $(ls /System/Library/LaunchDaemons/ | grep -v logd | grep -v fud | grep -v ReportCrash | while read a; do printf /System/Library/LaunchDaemons/$a\ ; done)
  5. launchctl unload /System/Library/NanoLaunchDaemons
  6. sleep 1
  7. launchctl load /Library/LaunchDaemons
  8. launchctl load /System/Library/LaunchDaemons
  9. launchctl load /System/Library/NanoLaunchDaemons
  10. exit 0