[openib-general] [PATCH] opensm/diags: fix regular expression in dump_lfts.sh

Sasha Khapyorsky sashak at voltaire.com
Tue Oct 17 04:42:45 PDT 2006


This fixes regular expression in dump_lfts.sh script, which is used for
switch's LIDs extraction.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 diags/scripts/dump_lfts.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/diags/scripts/dump_lfts.sh b/diags/scripts/dump_lfts.sh
index bed4778..5c62ed7 100755
--- a/diags/scripts/dump_lfts.sh
+++ b/diags/scripts/dump_lfts.sh
@@ -14,7 +14,7 @@ usage ()
 dump_by_lid ()
 {
 for sw_lid in `ibswitches \
-		| sed -ne 's/^.* lid \([1-9a-f]*\) .*$/\1/p'` ; do
+		| sed -ne 's/^.* lid \([0-9a-f]*\) .*$/\1/p'` ; do
 	ibroute $sw_lid
 done
 }
-- 
1.4.2.3.g128e





More information about the general mailing list