From afc562976d377d3b9b424a37b686eee45231a09b Mon Sep 17 00:00:00 2001 From: Tim Niemeyer <tim.niemeyer@mastersword.de> Date: Mon, 9 Sep 2013 23:22:25 +0200 Subject: [PATCH] wlanwatchdog: do not find local macs as clients Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de> --- 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 75821e58..24497183 100755 --- a/bsp/default/root_file_system/etc/wlanwatchdog.sh +++ b/bsp/default/root_file_system/etc/wlanwatchdog.sh @@ -68,7 +68,7 @@ count_clients() { NUMBER=$(brctl showstp $BRIDGE_INTERFACE 2> /dev/null | grep $WLAN_CLIENT_INTERFACE | cut -d" " -f2 | tr -d "()") fi if [ -n "$BRIDGE_INTERFACE" ] && [ -n "$NUMBER" ]; then - COUNT=$(brctl showmacs $BRIDGE_INTERFACE 2> /dev/null | cut -f1 | grep "$NUMBER" | wc -l) + COUNT=$(brctl showmacs $BRIDGE_INTERFACE 2> /dev/null | grep -v yes | cut -f1 | grep "$NUMBER" | wc -l) fi echo $COUNT } -- GitLab