Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 072a4c12523bf83fe3062a097f05e716 > scriptlet

quagga-bgpd-0.98.6-3.amd64.rpm

PREUN

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

POSTIN

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