PREUN
/bin/sh
if [ "$1" = "0" ]; then # execute this only if we are NOT doing an upgrade /sbin/service dnsmasq stop >/dev/null 2>&1 || : /sbin/chkconfig --del dnsmasq fi
POSTIN
/bin/sh
if [ "$1" = "2" ]; then # if we're being upgraded /sbin/service dnsmasq condrestart >/dev/null 2>&1 || : else # if we're being installed /sbin/chkconfig --add dnsmasq fi