From c15bf421ba846a567e38f47486dcdac1b591fca9 Mon Sep 17 00:00:00 2001 From: Sukru Senli Date: Thu, 8 Jun 2017 12:21:31 +0200 Subject: [PATCH] inteno-netmodes: netmode-conf: flash all leds when receiving credentials via zero touch --- inteno-netmodes/files/sbin/netmode-conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inteno-netmodes/files/sbin/netmode-conf b/inteno-netmodes/files/sbin/netmode-conf index 212749d06..e00463a8f 100755 --- a/inteno-netmodes/files/sbin/netmode-conf +++ b/inteno-netmodes/files/sbin/netmode-conf @@ -239,7 +239,9 @@ if [ "$from_gui" == "true" ]; then else if [ "$state" == "exit" ]; then return - elif [ "$state" == "apply" ]; then + fi + ubus call leds set '{"state":"allflash"}' + if [ "$state" == "apply" ]; then # wifi apply wifi reload else @@ -247,4 +249,5 @@ else wifi reload fi [ -f /etc/init.d/layer2_interface_ethernet -a -f /etc/config/layer2_interface_ethernet ] && /etc/init.d/layer2_interface_ethernet reload + ubus call leds set '{"state":"normal"}' fi