30 lines
463 B
Bash
Executable File
30 lines
463 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. /lib/functions/leds.sh
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
set_wifi_led() {
|
|
ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}"
|
|
}
|
|
|
|
board=$(board_name)
|
|
|
|
board_config_update
|
|
|
|
case $board in
|
|
belkin,f9k1109v1)
|
|
ucidef_set_led_netdev "lan" "lan" "blue:wps" "eth0"
|
|
;;
|
|
edimax,br-6475nd)
|
|
set_wifi_led "amber:wlan"
|
|
;;
|
|
omnima,hpm)
|
|
ucidef_set_led_netdev "eth" "ETH" "green:eth" "eth0"
|
|
set_wifi_led "green:wifi"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|