From 4da35ed0629a449a68d5459532619c4d421baa27 Mon Sep 17 00:00:00 2001 From: Tim Niemeyer Date: Tue, 29 Oct 2013 21:21:11 +0100 Subject: [PATCH] wlanwatchdog: fix NUMBER lookup for brctrl Signed-off-by: Tim Niemeyer --- bsp/default/root_file_system/etc/wlanwatchdog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/default/root_file_system/etc/wlanwatchdog.sh b/bsp/default/root_file_system/etc/wlanwatchdog.sh index 9c91cb9..1042e8e 100755 --- a/bsp/default/root_file_system/etc/wlanwatchdog.sh +++ b/bsp/default/root_file_system/etc/wlanwatchdog.sh @@ -75,7 +75,7 @@ count_clients() { local NUMBER= if [ -n "$BRIDGE_INTERFACE" ] && [ -n "$WLAN_CLIENT_INTERFACE" ]; then NUMBER=$(brctl showstp $BRIDGE_INTERFACE 2> /dev/null | \ - grep $WLAN_CLIENT_INTERFACE | \ + grep -e "^$WLAN_CLIENT_INTERFACE " | \ cut -d" " -f2 | \ tr -d "()") fi