Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > by-pkgid > 4e2947bf7ca8741fb964b9f0a06a07aa > scriptlet

fax4CUPS-1.12-1mdk.x86_64.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