Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 92bd0ee8d7a652198cbd776480f196ba > scriptlet

quagga-ripngd-0.98.6-3.amd64.rpm

PREUN

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

POSTIN

/bin/sh
/sbin/chkconfig --add ripngd >&2
if [ ! -s /etc/quagga/ripngd.conf ]; then
	echo "hostname `hostname`" > /etc/quagga/ripngd.conf
fi
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/ripngd ] && . /etc/sysconfig/ripngd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/ripngd ]; then
/sbin/service ripngd restart 1>&2 || :;
else
echo 'Run "/sbin/service ripngd start" to start ripngd routing daemon.'
fi
fi };