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 }