]> git.saurik.com Git - winterboard.git/blob - prerm
844448b4e05ec0e920f7cf87cfe4899d35ee0f16
[winterboard.git] / prerm
1 #!/bin/sh
2
3 declare -a cydia
4 cydia=($CYDIA)
5
6 if [[ $1 == remove ]]; then
7 if [[ ${CYDIA+@} ]]; then
8 eval "echo 'finish:restart' >&${cydia[0]}"
9 fi
10
11 grep -v ' com\.saurik\.winterboard\.' /etc/notify.conf >/etc/notify.conf_ &&
12 mv -f /etc/notify.conf{_,} || rm -f /etc/notify.conf_
13 killall -1 notifyd
14 fi