From 44c5b6e6d440cbc4bad86bace51d5257518ab4e4 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Mon, 28 Feb 2005 12:51:56 +0000 Subject: [PATCH] Replace \t with [[:space:]] when greeping for the device in the db file. --- ChangeLog | 4 ++++ tools/hotplug-ng/libsane.hotplug | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7b17cd805..fd21bd697 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-02-28 Julien Blache + * tools/hotplug-ng/libsane.hotplug: replace \t by [[:space:]] when + grepping for the device in the db file. + 2005-02-21 Julien Blache * tools/hotplug-ng: added new hotplug/hotplug-ng hook, with scripts and documentation. diff --git a/tools/hotplug-ng/libsane.hotplug b/tools/hotplug-ng/libsane.hotplug index 7310c1e73..ac38e46cb 100755 --- a/tools/hotplug-ng/libsane.hotplug +++ b/tools/hotplug-ng/libsane.hotplug @@ -10,7 +10,7 @@ fi DEVVID=$(printf %4s $(echo $PRODUCT | cut -d'/' -f1) | tr ' ' 0) DEVPID=$(printf %4s $(echo $PRODUCT | cut -d'/' -f2) | tr ' ' 0) -DEVCONF=$(grep -i ^0x$DEVVID\t0x$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 exit 0