Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 2052bc5f7fe82568a32997058940156f > scriptlet

mtink-1.0.14-14mdv2009.0.i586.rpm

PREUN

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

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service mtink $1 mtinkd 
if [ "$1" -eq "1" ]; then
    # On fresh installs, disable mtinkd on boot time
    chkconfig mtinkd off
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" -eq "2" ]; then
    # On update
    service mtinkd condrestart > /dev/null 2>/dev/null || :
fi

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then
    # On update
    /sbin/service mtinkd condrestart >/dev/null 2>&1
fi

Triggers

printer-utils-2007

/bin/sh
mtinkpid="`pidof mtink`"
if ! [ -z "${mtinkpid}" ]; then
    kill `cat ${mtinkpid}`
    /etc/rc.d/init.d/mtinkd start
fi