X-Git-Url: https://git.saurik.com/winterboard.git/blobdiff_plain/d7566bb453a0f87d7e099651a2e11e4f227c53c4..d5fb6e012f6166bc6ea83aeb8dc7e84794199b1f:/prerm?ds=sidebyside diff --git a/prerm b/prerm index dbb80b8..a383ff2 100755 --- a/prerm +++ b/prerm @@ -1,6 +1,10 @@ #!/bin/sh +declare -a cydia +cydia=($CYDIA) + if [[ $1 == remove ]]; then - /Applications/WinterBoard.app/pledit /System/Library/LaunchDaemons/com.apple.SpringBoard.plist \ - -r /Applications/WinterBoard.app/WinterBoard.dylib + if [[ ${CYDIA+@} ]]; then + eval "echo 'finish:restart' >&${cydia[0]}" + fi fi