30 lines
435 B
Bash
Executable File
30 lines
435 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
|
|
airlink101,ar670w|\
|
|
airlink101,ar725w)
|
|
set_wifi_led "rt2800soc-phy0::radio"
|
|
;;
|
|
belkin,f5d8235-v1)
|
|
set_wifi_led "blue:wireless"
|
|
;;
|
|
ralink,v11st-fe)
|
|
set_wifi_led "rt2800pci-phy0::radio"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|