Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > d00b3f03d9440cddf4837c26c44e5e8c > scriptlet

fax4CUPS-1.24-1mdk.noarch.rpm

POSTIN

/bin/sh
# Restart the CUPS daemon to refresh the database
! ( lpstat -r 1> /dev/null 2>&1 ) || (
  /etc/rc.d/init.d/cups stop 1> /dev/null 2>&1
  /etc/rc.d/init.d/cups start 1> /dev/null 2>&1
)

POSTUN

/bin/sh
if [ "$1" = 0 ]; then
 
        # Restart the CUPS daemon to refresh the database
        ! ( lpstat -r 1> /dev/null 2>&1 ) || (
            /etc/rc.d/init.d/cups stop 1> /dev/null 2>&1
            /etc/rc.d/init.d/cups start 1> /dev/null 2>&1
        )
fi