openwrt/target/linux/ramips/rt3883/base-files/etc/board.d/01_leds

25 lines
441 B
Plaintext

. /lib/functions/leds.sh
. /lib/functions/uci-defaults.sh
board=$(board_name)
board_config_update
case $board in
belkin,f9k1109v1)
ucidef_set_led_netdev "lan" "lan" "blue:wps" "eth0"
;;
edimax,br-6475nd)
ucidef_set_led_netdev "wifi_led" "wifi" "amber:wlan" "wlan0"
;;
omnima,hpm)
ucidef_set_led_netdev "eth" "ETH" "green:eth" "eth0"
ucidef_set_led_netdev "wifi_led" "wifi" "green:wifi" "wlan0"
;;
esac
board_config_flush
exit 0