PREUN
/bin/sh
if [ "$1" = "0" ]; then
{
if [ -f /var/lock/subsys/zebra ]; then
/sbin/service zebra stop 1>&2 || :;
fi }; /sbin/chkconfig --del zebra >&2
fi
POSTIN
/bin/sh
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c /usr/share/info >/dev/null 2>&1
/sbin/chkconfig --add zebra >&2
umask 027
if [ ! -s /etc/zebra/zebra.conf ]; then
echo "hostname `hostname`" > /etc/zebra/zebra.conf
fi
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/zebra ] && . /etc/sysconfig/zebra
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/zebra ]; then
/sbin/service zebra restart 1>&2 || :;
else
echo 'Run "/sbin/service zebra start" to start main routing daemon.'
fi
fi };
POSTUN
/bin/sh
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c /usr/share/info >/dev/null 2>&1