Browse Source

changed reload script/plist

Added bin/bash argument to plist.
Don't unload system daemons, that was only necessary for mach_portal cleanup.
Sticktron 6 years ago
parent
commit
5245428247
2 changed files with 1 additions and 5 deletions
  1. 1 0
      g0blin/0.reload.plist
  2. 0 5
      g0blin/reload

+ 1 - 0
g0blin/0.reload.plist

@@ -6,6 +6,7 @@
 	<string>0.reload</string>
 	<key>ProgramArguments</key>
 	<array>
+		<string>/bin/bash</string>
 		<string>/usr/libexec/reload</string>
 	</array>
 	<key>RunAtLoad</key>

+ 0 - 5
g0blin/reload

@@ -1,11 +1,6 @@
 #!/bin/sh
 ls /etc/rc.d | while read a; do /etc/rc.d/$a; done
 sleep 1
-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)
-launchctl unload /System/Library/NanoLaunchDaemons
-sleep 1
 launchctl load /Library/LaunchDaemons
-launchctl load /System/Library/LaunchDaemons
-launchctl load /System/Library/NanoLaunchDaemons
 
 exit 0