x86: Add APU3 reference to x86 board.d
[openwrt/openwrt.git] / target / linux / x86 / base-files / etc / board.d / 01_leds
1 #!/bin/sh
2 #
3 # Copyright © 2017 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7
8 board_config_update
9
10 case "$(board_name)" in
11 pc-engines-apu|pc-engines-apu2|pc-engines-apu3)
12 ucidef_set_led_netdev "wan" "WAN" "apu2:green:led3" "eth0"
13 ucidef_set_led_netdev "lan" "LAN" "apu2:green:led2" "br-lan"
14 ucidef_set_led_default "diag" "DIAG" "apu2:green:power" "1"
15 ;;
16 traverse-technologies-geos)
17 ucidef_set_led_netdev "lan" "LAN" "geos:1" "br-lan" "tx rx"
18 ucidef_set_led_netdev "wlan" "WiFi" "geos:2" "phy0tpt"
19 ucidef_set_led_default "diag" "DIAG" "geos:3" "1"
20 ;;
21 esac
22 board_config_flush
23
24 exit 0