You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
585 B
Bash

#!/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)
boardname="${board##*,}"
board_config_update
led_wlan="$(get_dt_led wlan)"
[ -n "$led_wlan" ] && ucidef_set_led_wlan "wifi_led" "wifi" "$led_wlan" "phy0tpt"
case $board in
airlink101,ar670w|\
airlink101,ar725w)
set_wifi_led "rt2800soc-phy0::radio"
;;
belkin,f5d8235-v1)
set_wifi_led "$boardname:blue:wireless"
;;
ralink,v11st-fe)
set_wifi_led "rt2800pci-phy0::radio"
;;
esac
board_config_flush
exit 0