Sophie

Sophie

distrib > Scientific%20Linux > 5x > i386 > by-pkgid > 3a09b8b4400be26d886e6d7a77609bc8 > scriptlet

dnsmasq-2.45-1.1.el5_3.i386.rpm

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