Sophie

Sophie

distrib > Fedora > 17 > i386 > by-pkgid > 7a59c33e706fbf94c39fb573b5827100 > scriptlet

ffgtk-0.8.5-1.fc17.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