Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 3a290e6343d53994651cccbb71fe66d1 > scriptlet

libsane-hpaio1-3.11.5-1.3mdv2010.2.i586.rpm

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