2
0
forked from Ivasoft/openwrt

x86: Enable DIAG LED on Geos

Based on a patch from Chris Blake <chrisrblake93@gmail.com>, except let's
do it by using the LED configuration instead of hard-coding it for each
board type. And try using /bin/board_detect to do the default behaviour,
on the first boot where the config hasn't yet been generated.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
David Woodhouse
2017-02-13 13:38:33 +00:00
committed by John Crispin
parent 27a635f0b4
commit add465f1be
2 changed files with 79 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ case "$board" in
traverse-technologies-geos)
ucidef_set_led_netdev "lan" "LAN" "geos:1" "br-lan" "tx rx"
ucidef_set_led_netdev "wlan" "WiFi" "geos:2" "phy0tpt"
ucidef_set_led_default "diag" "DIAG" "geos:3" "0"
ucidef_set_led_default "diag" "DIAG" "geos:3" "1"
;;
esac
board_config_flush