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