kopia lustrzana https://gitlab.com/sane-project/backends
tools/hotplug-ng/libsane.hotplug: allow for several spaces between fields in the db file.
rodzic
44c5b6e6d4
commit
207c751982
|
@ -1,3 +1,7 @@
|
||||||
|
2005-03-02 Julien Blache <jb@jblache.org>
|
||||||
|
* tools/hotplug-ng/libsane.hotplug: allow for several spaces
|
||||||
|
between fields in the db file.
|
||||||
|
|
||||||
2005-02-28 Julien Blache <jb@jblache.org>
|
2005-02-28 Julien Blache <jb@jblache.org>
|
||||||
* tools/hotplug-ng/libsane.hotplug: replace \t by [[:space:]] when
|
* tools/hotplug-ng/libsane.hotplug: replace \t by [[:space:]] when
|
||||||
grepping for the device in the db file.
|
grepping for the device in the db file.
|
||||||
|
|
|
@ -10,7 +10,7 @@ fi
|
||||||
DEVVID=$(printf %4s $(echo $PRODUCT | cut -d'/' -f1) | tr ' ' 0)
|
DEVVID=$(printf %4s $(echo $PRODUCT | cut -d'/' -f1) | tr ' ' 0)
|
||||||
DEVPID=$(printf %4s $(echo $PRODUCT | cut -d'/' -f2) | tr ' ' 0)
|
DEVPID=$(printf %4s $(echo $PRODUCT | cut -d'/' -f2) | tr ' ' 0)
|
||||||
|
|
||||||
DEVCONF=$(grep -i ^0x$DEVVID[[:space:]]0x$DEVPID /etc/sane.d/hotplug/*.db 2> /dev/null)
|
DEVCONF=$(grep -i ^0x$DEVVID[[:space:]]\+0x$DEVPID /etc/sane.d/hotplug/*.db 2> /dev/null)
|
||||||
|
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Ładowanie…
Reference in New Issue