Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 6dcd4cd4b053db38eb6f46e7cee30901 > scriptlet

wanpipe-2.3.0-9.4.amd64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	{
if [ -f /var/lock/subsys/wanrouter ]; then
/sbin/service wanrouter stop 1>&2 || :;
fi };	/sbin/chkconfig --del wanrouter
fi

POSTIN

/bin/sh
/sbin/chkconfig --add wanrouter
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/wanrouter ] && . /etc/sysconfig/wanrouter
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/wanrouter ]; then
/sbin/service wanrouter restart 1>&2 || :;
else
echo 'Run "/sbin/service wanrouter start" to start wanrouter service.'
fi
fi };if [ "$1" = 1 ]; then
	echo "Edit configuration files in /etc/wanpipe and /etc/sysconfig/interfaces"
fi