Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > updates > by-pkgid > bfcbbef422de86bafda3f5a9aa263d93 > scriptlet

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

PREUN

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

POSTIN

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

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

POSTUN

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