diff --git a/inteno-netmodes/files/etc/hotplug.d/iface/01-netmode-firewall-handler b/inteno-netmodes/files/etc/hotplug.d/iface/01-netmode-firewall-handler index 37a63919a..aa7e4af82 100755 --- a/inteno-netmodes/files/etc/hotplug.d/iface/01-netmode-firewall-handler +++ b/inteno-netmodes/files/etc/hotplug.d/iface/01-netmode-firewall-handler @@ -40,6 +40,7 @@ test_ip() { uci commit netmode local pid="$(ps | grep wificontro[l] | awk '/repeater/ {print $1}')" [ "$pid" != "" ] && kill $pid + /sbin/netmode-client-detect & } fi } diff --git a/inteno-netmodes/files/sbin/netmode-client-detect b/inteno-netmodes/files/sbin/netmode-client-detect index b2fa1eaf3..0072fafaa 100755 --- a/inteno-netmodes/files/sbin/netmode-client-detect +++ b/inteno-netmodes/files/sbin/netmode-client-detect @@ -9,6 +9,7 @@ local action ipaddr macaddr network timed_check() { while true; do + ubus call repeater get_creds '{"network":"'$network'","file":"/tmp/wificontrol.txt"}' >/dev/null wificontrol --router sleep $1 done