]> git.saurik.com Git - winterboard.git/blobdiff - preinst
Various upgrades for 3.x and performance.
[winterboard.git] / preinst
diff --git a/preinst b/preinst
index 5c0d2e3d36edf9be382537d364bbb7ca7e3e772a..8018e12a2b62956e66bf6ffcc54cb4c370208f2e 100755 (executable)
--- a/preinst
+++ b/preinst
@@ -5,6 +5,7 @@ cydia=($CYDIA)
 
 if [[ $1 == install ]]; then
     /usr/libexec/cydia/move.sh /Library/Themes
+
     if [[ ${CYDIA+@} ]]; then
         eval "echo 'finish:restart' >&${cydia[0]}"
     fi
@@ -23,6 +24,8 @@ elif [[ $1 == upgrade ]]; then
 fi
 
 if [[ $1 == install || $1 == upgrade ]]; then
+    chmod 755 /Library/Themes/
+
     {
         grep -v ' com\.saurik\.winterboard\.' /etc/notify.conf
         cat <<EOF
@@ -30,8 +33,9 @@ reserve com.saurik.winterboard. 0 0 rwr-r-
 monitor com.saurik.winterboard.lockbackground /var/mobile/Library/LockBackground.jpg
 EOF
     } >/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_
-    killall -1 notifyd
 fi
 
 exit 0