diff options
author | Jo-Philipp Wich <jo@mein.io> | 2016-05-31 14:30:41 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-06-08 00:31:09 +0200 |
commit | 4f65b6f56750987c98aaeff16636f5b2c2d01547 (patch) | |
tree | 48b2d8a285fce63a137cc8508c0750c146526513 /target | |
parent | 07f03d08335aca0914059425a29d708e5490846e (diff) | |
download | mtk-20170518-4f65b6f56750987c98aaeff16636f5b2c2d01547.zip mtk-20170518-4f65b6f56750987c98aaeff16636f5b2c2d01547.tar.gz mtk-20170518-4f65b6f56750987c98aaeff16636f5b2c2d01547.tar.bz2 |
adm5120: convert LED setup to board.d
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'target')
-rwxr-xr-x | target/linux/adm5120/base-files/etc/board.d/01_leds | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/adm5120/base-files/etc/board.d/01_leds b/target/linux/adm5120/base-files/etc/board.d/01_leds new file mode 100755 index 0000000..f5cd778 --- /dev/null +++ b/target/linux/adm5120/base-files/etc/board.d/01_leds @@ -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 |