Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > d3399779e9e57b89765f31ae5d4bb0bd > scriptlet

cups-pdf-2.5.1-1.fc14.x86_64.rpm

POSTIN

/bin/sh
# 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 Cups-PDF -v cups-pdf:/ -m CUPS-PDF.ppd -E || :
    fi
fi

POSTUN

/bin/sh
if [ "$1" -eq "0" ]; then
    # Delete the printer
    /usr/sbin/lpadmin -x Cups-PDF || :
fi