]> git.saurik.com Git - winterboard.git/blobdiff - prerm
Drastic reorganization of WinterBoard.
[winterboard.git] / prerm
diff --git a/prerm b/prerm
index dbb80b8aa335a90fd6ca29cc1a0da15ab59316d0..a383ff2cb658ca885f8f304ac9d64526fdfe0dc7 100755 (executable)
--- 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