X-Git-Url: https://git.saurik.com/winterboard.git/blobdiff_plain/62b2dbad6360951766f085f50ce8d19c80756395..240a7a4e7d5b9af9e83e99bcb08cf37e95f53922:/prerm diff --git a/prerm b/prerm index dbb80b8..61375f6 100755 --- a/prerm +++ b/prerm @@ -1,6 +1,17 @@ #!/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 + + grep -v ' com\.saurik\.winterboard\.' /etc/notify.conf >/etc/notify.conf_ && + chmod --reference=/etc/notify.conf /etc/notify.conf_ && + chown --reference=/etc/notify.conf /etc/notify.conf_ && + mv -f /etc/notify.conf{_,} || rm -f /etc/notify.conf_ fi + +exit 0