Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > media > updates > by-pkgid > 9f76d24be37ca2d6b601b0e9b5bc1cc7 > scriptlet

printer-filters-1.0-138.2.100mdk.i586.rpm

PREUN

/bin/sh
#Stop oki4daemon when uninstalling printer-filters
/usr/share/rpm-helper/del-service printer-drivers $1 oki4daemon

POSTIN

/bin/sh
if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi 

# Restart the oki4daemon when it is running, but do not activate it by
# default. It blocks the parallel port for non-OKI devices.
if [ "$1" -ne "1" ]; then
    # On update
    service oki4daemon condrestart > /dev/null 2>/dev/null || :
fi

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then
	# On update
	/sbin/service oki4daemon condrestart >/dev/null 2>&1
fi
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi