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