]> git.saurik.com Git - winterboard.git/blobdiff - preinst
Super speed up, navigation bar style per style, user wallpaper change detector, sound...
[winterboard.git] / preinst
diff --git a/preinst b/preinst
index 2cb79e1364b6fb180cbdb6906c462ce755c6b1bb..5c0d2e3d36edf9be382537d364bbb7ca7e3e772a 100755 (executable)
--- a/preinst
+++ b/preinst
@@ -22,4 +22,16 @@ elif [[ $1 == upgrade ]]; then
     fi
 fi
 
+if [[ $1 == install || $1 == upgrade ]]; then
+    {
+        grep -v ' com\.saurik\.winterboard\.' /etc/notify.conf
+        cat <<EOF
+reserve com.saurik.winterboard. 0 0 rwr-r-
+monitor com.saurik.winterboard.lockbackground /var/mobile/Library/LockBackground.jpg
+EOF
+    } >/etc/notify.conf_ &&
+        mv -f /etc/notify.conf{_,} || rm -f /etc/notify.conf_
+    killall -1 notifyd
+fi
+
 exit 0