X-Git-Url: https://git.saurik.com/winterboard.git/blobdiff_plain/62b2dbad6360951766f085f50ce8d19c80756395..d5fb6e012f6166bc6ea83aeb8dc7e84794199b1f:/prerm 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