PREUN
/bin/sh
if [ $1 = 0 ] ; then ### Uninstall package ### # stop services and remove autostart /sbin/service ncid-samba stop > /dev/null 2>&1 || : /sbin/chkconfig --del ncid-samba fi
POSTIN
/bin/sh
/sbin/chkconfig --add ncid-samba
POSTUN
/bin/sh
if [ "$1" -ge "1" ]; then ### upgrade package ### # restart services if running /sbin/service ncid-samba condrestart >/dev/null 2>&1 || : fi