void-packages/srcpkgs/brother-brscan4/REMOVE

11 lines
286 B
Plaintext

case "${ACTION}" in
pre)
# remove brother driver from sane configuration
_TEMPFILE=`mktemp sane_dll_conf_XXXXXXXXXXX`
_SANE_CONF='/etc/sane.d/dll.conf'
( cat ${_SANE_CONF} | sed -e '/brother4/d' > ${_TEMPFILE} ) && cat ${_TEMPFILE} > ${_SANE_CONF}
rm ${_TEMPFILE}
;;
esac