PREUN
/bin/sh
# Remove HPLIP driver from /etc/sane.d/dll.conf if [ "$1" = 0 ]; then \ if grep ^hpaio /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \ sed '/hpaio/d' /etc/sane.d/dll.conf > /tmp/$$; \ cp -f /tmp/$$ /etc/sane.d/dll.conf; \ rm -f /tmp/$$; \ fi; \ fi
POSTIN
/bin/sh
# Add HPLIP driver to /etc/sane.d/dll.conf if ! grep ^hpaio /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \ echo hpaio >> /etc/sane.d/dll.conf; \ fi