Sophie

Sophie

distrib > PLD > ra > i686 > media > dist > by-pkgid > 8bc067f3440dc3b1296e3ff921498473 > scriptlet

wanpipe-2.1.3-3.i686.rpm

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