mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
Define the blue sys LED from the device tree as the POWER LED for the CyberTAN EWW631-B1 platform. This allows LED control through uCentral Signed-off-by: Paul White <paul@shasta.cloud> Fixes: WIFI-13435 Signed-off-by: John Crispin <john@phrozen.org>
29 lines
674 B
Bash
Executable File
29 lines
674 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board_config_update
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
cig,wf194c4)
|
|
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0" "tx rx link"
|
|
ucidef_set_led_wlan "wlan5g" "WLAN5G" "green:wifi5" "phy0tpt"
|
|
ucidef_set_led_wlan "wlan2g" "WLAN2G" "green:wifi2" "phy1tpt"
|
|
;;
|
|
edgecore,eap102|\
|
|
edgecore,oap102)
|
|
ucidef_set_led_netdev "poe" "poe" "green:wan" "eth0"
|
|
ucidef_set_led_wlan "wlan5g" "WLAN5G" "green:wifi5" "phy0tpt"
|
|
ucidef_set_led_wlan "wlan2g" "WLAN2G" "green:wifi2" "phy1tpt"
|
|
;;
|
|
cybertan,eww631-b1)
|
|
ucidef_set_led_default "power" "POWER" "sys:blue" "on"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|