add a scriptlet to disable epsonds autodiscovery in case an user changed epsonds.conf
This commit is contained in:
parent
3a53f688fe
commit
4f561da855
@ -14,7 +14,7 @@
|
||||
Summary: Scanner access software
|
||||
Name: sane-backends
|
||||
Version: 1.0.30
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions
|
||||
# Tools are GPLv2+, docs are public domain
|
||||
# see LICENSE for details
|
||||
@ -240,6 +240,14 @@ rm -f %{buildroot}%{_libdir}/sane/libsane-qcam.so
|
||||
%post
|
||||
udevadm hwdb --update >/dev/null 2>&1 || :
|
||||
|
||||
# check if there is autodiscovery enabled in epsonds.conf
|
||||
autodiscovery=`%{_bindir}/grep -E '^[[:space:]]*net[[:space:]]*autodiscovery' /etc/sane.d/epsonds.conf`
|
||||
if [ -n "$autodiscovery" ]
|
||||
then
|
||||
# comment out 'net autodiscovery' if it is not commented out
|
||||
%{_bindir}/sed -i 's,^[[:space:]]*net[[:space:]]*autodiscovery,#net autodiscovery,g' /etc/sane.d/epsonds.conf
|
||||
fi
|
||||
|
||||
%postun
|
||||
udevadm hwdb --update >/dev/null 2>&1 || :
|
||||
|
||||
@ -421,6 +429,9 @@ exit 0
|
||||
%{_unitdir}/saned@.service
|
||||
|
||||
%changelog
|
||||
* Tue Jul 28 2020 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.30-3
|
||||
- add a scriptlet to disable epsonds autodiscovery in case an user changed epsonds.conf
|
||||
|
||||
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 1.0.30-2
|
||||
- Use make macros
|
||||
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||||
|
Loading…
Reference in New Issue
Block a user