Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > b46532bef84b4c32543c71a14ea3c134 > scriptlet

quagga-ripd-0.98.6-3.amd64.rpm

PREUN

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

POSTIN

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