PREUN
/bin/sh
#
# Stop bmc-watchdog if it is running
#
if [ "$1" = 0 ]; then
if [ -x /etc/rc.d/init.d/freeipmi-bmc-watchdog ]; then
/etc/rc.d/init.d/freeipmi-bmc-watchdog stop >/dev/null 2>&1
/sbin/chkconfig --del freeipmi-bmc-watchdog
fi
fi
POSTIN
/bin/sh
if [ "$1" = 1 ]; then
if [ -x /etc/rc.d/init.d/freeipmi-bmc-watchdog ]; then
/sbin/chkconfig --add freeipmi-bmc-watchdog
fi
fi
if [ "$1" -gt "1" ]; then
if [ -x /etc/rc.d/init.d/freeipmi-bmc-watchdog ]; then
/etc/rc.d/init.d/freeipmi-bmc-watchdog condrestart
fi
fi