PREUN
/bin/sh
if [ "$1" = "0" ]; then
/sbin/service dund stop >/dev/null 2>&1 || :
/sbin/service pand stop >/dev/null 2>&1 || :
/sbin/service rfcomm stop >/dev/null 2>&1 || :
/sbin/chkconfig --del dund
/sbin/chkconfig --del pand
/sbin/chkconfig --del rfcomm
fi
POSTIN
/bin/sh
/sbin/chkconfig --add dund
/sbin/chkconfig --add pand
/sbin/chkconfig --add rfcomm
if [ "$1" -ge "1" ]; then
/sbin/service dund condrestart >/dev/null 2>&1 || :
/sbin/service pand condrestart >/dev/null 2>&1 || :
/sbin/service rfcomm condrestart >/dev/null 2>&1 || :
fi
exit 0