PREUN
/bin/sh
if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/wanrouter ]; then /etc/rc.d/init.d/wanrouter stop 1>&2 fi /sbin/chkconfig --del wanrouter fi
POSTIN
/bin/sh
/sbin/chkconfig --add wanrouter if [ -f /var/lock/subsys/wanrouter ]; then /etc/rc.d/init.d/wanrouter restart 1>&2 else echo "Edit configuration files in /etc/wanpipe and /etc/sysconfig/interfaces" echo "and type \"/etc/rc.d/init.d/wanrouter start\" to start wanrouter" 1>&2 fi