Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > d28aa3e8cda971dba1970008aa666944 > scriptlet

printer-filters-1.0-102mdk.ppc.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