#!/bin/bash
export PATH=/usr/bin:/bin:/sbin:/usr/sbin

mkdir /etc/rc.d/

if [ ! -e "/etc/rc.d/fixerupper" ] ; then 

echo "#!/bin/bash" >> /etc/rc.d/fixerupper
echo "launchctl unload /Library/LaunchDaemons/com.apple.mobile.lockdown.plist" >> /etc/rc.d/fixerupper
echo "launchctl load /Library/LaunchDaemons/com.apple.mobile.lockdown.plist" >> /etc/rc.d/fixerupper

fi

chmod +x /etc/rc.d/fixerupper
/etc/rc.d/fixerupper