diff options
Diffstat (limited to 'ecofax.install')
-rw-r--r-- | ecofax.install | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ecofax.install b/ecofax.install new file mode 100644 index 000000000000..197d1276e417 --- /dev/null +++ b/ecofax.install @@ -0,0 +1,12 @@ +post_install() { + if [ -f /usr/share/ppd/cups-included/postscript.ppd ]; then + lpadmin -p EcoFax -v ecofaxcb: -E -P /usr/share/ppd/cups-included/postscript.ppd -o PageSize=A4 + else + lpadmin -p EcoFax -v ecofaxcb: -E -P /usr/share/ppd/cupsfilters/Generic-PDF_Printer-PDF.ppd -o PageSize=A4 + fi +} + +pre_remove() { + lpadmin -x EcoFax +} + |