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