From 3d2301cdb0932245e42c2b83d98f0fed625ff04f Mon Sep 17 00:00:00 2001 From: Alex Oprea Date: Mon, 24 Apr 2017 12:49:06 +0200 Subject: [PATCH] netmode: remove already fixed todo --- inteno-netmodes/files/sbin/netmode-client-detect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inteno-netmodes/files/sbin/netmode-client-detect b/inteno-netmodes/files/sbin/netmode-client-detect index d3d10b86a..f3cbff70f 100755 --- a/inteno-netmodes/files/sbin/netmode-client-detect +++ b/inteno-netmodes/files/sbin/netmode-client-detect @@ -17,10 +17,10 @@ while read event ; do json_get_var macaddr macaddr json_get_var ipaddr ipaddr json_get_var network netwrork "lan" + if echo $macaddr | grep -i -e "^00:22:07" -e "^44:D4:37" -e "^02:0C:07" -e "^06:0C:07"; then echo "netmode-client-detect: a new Inteno device detected on '$network' network (MACAddr:$macaddr IPAddr:$ipaddr)" >/dev/console ubus call repeater get_creds '{"network":"'$network'","file":"/tmp/wificontrol.txt"}' /sbin/wificontrol --router --destination $ipaddr fi - # todo add macaddr done