mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-14 21:10:11 +01:00
inteno-netmodes: blink leds when switching between extender-repeater modes
This commit is contained in:
parent
ff051a6aab
commit
32573cfa8e
1 changed files with 4 additions and 0 deletions
|
|
@ -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"}'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue