inteno-netmodes: blink leds when switching between extender-repeater modes

This commit is contained in:
Sukru Senli 2017-06-18 16:34:24 +02:00
parent ff051a6aab
commit 32573cfa8e

View file

@ -49,6 +49,8 @@ get_wifi_iface_cfgstr() {
link=$(cat /sys/class/net/${WANDEV:0:4}/operstate)
[ $MTK -eq 1 ] && link=$(swconfig dev switch0 port 0 get link | awk '{print$2}' | cut -d':' -f2)
ubus call leds set '{"state" : "allflash"}'
case "$ACTION" in
add|register)
[ "$link" == "down" ] && return
@ -91,3 +93,5 @@ case "$ACTION" in
}
;;
esac
ubus call leds set '{"state" : "normal"}'