#!/bin/sh


# rm the castoff of old version
rm -rf /Library/MobileSubstrate/DynamicLibraries/AutoTouchTweak.*

mkdir -p -m 777 /var/mobile/Library/AutoTouch/Scripts >/dev/null 2>&1
mkdir -p -m 777 /var/mobile/Library/AutoTouch/Library >/dev/null 2>&1

# make the dir locations file in readable and writeable
chmod 777 /Applications/AutoTouch.app

# Cydia will restart backboardd when "Restart SpringBoard", so no need restart here
# launchctl stop com.apple.backboardd
# uicache