2019-10-22 10:37:13 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. /lib/functions/leds.sh
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
|
|
|
|
board=$(board_name)
|
|
|
|
|
|
|
|
board_config_update
|
|
|
|
|
|
|
|
case $board in
|
|
|
|
belkin,f9k1109v1)
|
2020-09-27 17:40:51 +00:00
|
|
|
ucidef_set_led_netdev "lan" "lan" "blue:wps" "eth0"
|
2019-10-22 10:37:13 +00:00
|
|
|
;;
|
|
|
|
edimax,br-6475nd)
|
2020-09-27 21:35:11 +00:00
|
|
|
ucidef_set_led_netdev "wifi_led" "wifi" "amber:wlan" "wlan0"
|
2019-10-22 10:37:13 +00:00
|
|
|
;;
|
|
|
|
omnima,hpm)
|
2020-09-27 17:40:51 +00:00
|
|
|
ucidef_set_led_netdev "eth" "ETH" "green:eth" "eth0"
|
2020-09-27 21:35:11 +00:00
|
|
|
ucidef_set_led_netdev "wifi_led" "wifi" "green:wifi" "wlan0"
|
2019-10-22 10:37:13 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|