Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > c552cfe0d0c8733e712d6ab0aff105aa > scriptlet

ffgtk-0.8.1-1.fc15.i686.rpm

POSTIN

/bin/sh
# On first install : create the printer if cupsd is running
if [ "$1" -eq "1" -a -S "/var/run/cups/cups.sock" ]; then
    /usr/sbin/lpadmin -p ffgtk-fax -v socket://localhost:9901 -m ffgtk-fax.ppd -E || :
fi

POSTUN

/bin/sh
# on removal, remove the printer if cupsd is running
if [ "$1" -eq "0" -a -S "/var/run/cups/cups.sock" ]; then
    # Delete the printer
    /usr/sbin/lpadmin -x ffgtk-fax || :
fi