summarylogtreecommitdiffstats
path: root/ecofax.install
blob: 197d1276e417a0b041cf5b4bd9acf3ffb21b8fe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
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
}