All pastes #907291 Raw Edit

Services.plist patch for zibri.d

public shellscript v1 · immutable
·published 2008-02-17 13:53 UTC
rendered paste body
# AFC2 Patch - by mavif [ `/bin/cat /mnt1/System/Library/Lockdown/Services.plist | /bin/grep -c afc2` == "0" ]; then	echo "Patching Services.plist...";	((l=`/bin/cat /mnt1/System/Library/Lockdown/Services.plist | /bin/grep -c \<` - 2))	/bin/head -n $l /mnt1/System/Library/Lockdown/Services.plist > /mnt1/System/Library/Lockdown/Services.plist.new	/bin/cat /zib/afc2.plist >> /mnt1/System/Library/Lockdown/Services.plist.new	/bin/rm -f /mnt1/System/Library/Lockdown/Services.plist	/bin/mv /mnt1/System/Library/Lockdown/Services.plist.new /mnt1/System/Library/Lockdown/Services.plistfi