X-Git-Url: https://git.saurik.com/winterboard.git/blobdiff_plain/d5fb6e012f6166bc6ea83aeb8dc7e84794199b1f..dbfda2af58c3682e1cb61966f040b9325a1b478d:/preinst diff --git a/preinst b/preinst index 2cb79e1..e5691e6 100755 --- 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 @@ -22,4 +23,20 @@ elif [[ $1 == upgrade ]]; then fi fi +if [[ $1 == install || $1 == upgrade ]]; then + chmod 755 /Library/Themes/ + + { + grep -v ' com\.saurik\.winterboard\.' /etc/notify.conf + cat </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