Package hplip: Scripts

Post install

/sbin/service cups condrestart ||:
Pre install

1
2
3
4
5
6
# TODO: drop it somewhere after p7 release
# no more services
if [ -f /etc/rc.d/init.d/hplip ]; then
    /sbin/service hplip condstop ||:
    /sbin/chkconfig --del hplip ||:
fi
Pre uninstall

1
2
3
4
5
6
7
if [ "$RPM_INSTALL_ARG1" -eq 0 ]; then
    /sbin/service cups condrestart ||:
fi

#fedora use it in post...
#%post hpijs
#/usr/bin/hpcups-update-ppds &>/dev/null ||: