inteno-netmodes: netmode-conf: flash all leds when receiving credentials via zero touch

This commit is contained in:
Sukru Senli 2017-06-08 12:21:31 +02:00
parent 379c263b65
commit c15bf421ba

View file

@ -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