From 425bbafd83de9dd85f31f1ea4d808f1989848d9e Mon Sep 17 00:00:00 2001 From: Sukru Senli Date: Thu, 22 Jun 2017 15:08:05 +0200 Subject: [PATCH] inteno-netmodes: netmode-client-detect: use the last customer network --- inteno-netmodes/files/sbin/netmode-client-detect | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inteno-netmodes/files/sbin/netmode-client-detect b/inteno-netmodes/files/sbin/netmode-client-detect index 19c13ccc8..5202a1e59 100755 --- a/inteno-netmodes/files/sbin/netmode-client-detect +++ b/inteno-netmodes/files/sbin/netmode-client-detect @@ -8,7 +8,8 @@ local action ipaddr macaddr network timed_check() { - ubus call repeater get_creds '{"network":"lan","file":"/tmp/wificontrol.txt"}' + network=${network:lan} + ubus call repeater get_creds '{"network":"'$network'","file":"/tmp/wificontrol.txt"}' wificontrol --router }