Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > e572967057c7c74db2bf1a487fb5ac1a > scriptlet

ffgtk-0.7.94-8.fc14.x86_64.rpm

POSTIN

/bin/sh
# On first install : create the printer if cupsd is running
if [ "$1" -eq "1" -a -f "/var/run/cupsd.pid" ]
then
    if [ -d /proc/$(cat /var/run/cupsd.pid) ] 
    then
        /usr/sbin/lpadmin -p ffgtk-fax -v socket://localhost:9901 -m ffgtk-fax.ppd -E || :
    fi
fi

POSTUN

/bin/sh
# on removal, remove the printer if cupsd is running
if [ "$1" -eq "0" -a -f "/var/run/cupsd.pid" ]
then
    if [ -d /proc/$(cat /var/run/cupsd.pid) ] 
    then
        # Delete the printer
        /usr/sbin/lpadmin -x ffgtk-fax || :
    fi
fi