Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > updates > by-pkgid > 4d5fb37c37b132769c9cd69fd5335d63 > scriptlet

printer-filters-2006-7.1.20060mdk.x86_64.rpm

PREUN

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

POSTIN

/bin/sh
# 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