mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-22 10:01:03 +00:00
adm5120: convert LED setup to board.d
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
07f03d0833
commit
4f65b6f567
17
target/linux/adm5120/base-files/etc/board.d/01_leds
Executable file
17
target/linux/adm5120/base-files/etc/board.d/01_leds
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. /lib/functions/uci-defaults.sh
|
||||||
|
|
||||||
|
board_config_update
|
||||||
|
|
||||||
|
ucidef_set_led_portstate "lan1" "LAN1" "lan1" "link_act"
|
||||||
|
ucidef_set_led_portstate "lan2" "LAN2" "lan2" "link_act"
|
||||||
|
ucidef_set_led_portstate "lan3" "LAN3" "lan3" "link_act"
|
||||||
|
ucidef_set_led_portstate "lan4" "LAN4" "lan4" "link_act"
|
||||||
|
ucidef_set_led_portstate "wan" "WAN" "wan" "link_act"
|
||||||
|
|
||||||
|
ucidef_set_led_netdev "wlan" "WLAN" "wlan" "wlan0"
|
||||||
|
|
||||||
|
board_config_flush
|
||||||
|
|
||||||
|
exit 0
|
Loading…
x
Reference in New Issue
Block a user