Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > by-pkgid > cb65b1fc4d15298d1859bbfd6e285de9 > scriptlet

printer-utils-1.0-133mdk.i586.rpm

PREUN

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

POSTIN

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

# Add HP LaserJet 1000 (firmware upload) to /etc/hotplug/usb.usermap
/usr/sbin/update-usb.usermap || :
# 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" -eq "0" ]; then
	# On removal
	# Remove HP LaserJet 1000 (firmware upload) from 
	# /etc/hotplug/usb.usermap if erasing the package not as part of a 
	# package update
	/usr/sbin/update-usb.usermap || :
fi
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