x86: Add board configs for the PC Engines APU2
[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 board=$(cat /tmp/sysinfo/board_name) 2>/dev/null
11
12 case "$board" in
13 pc-engines-apu2)
14 ucidef_set_led_netdev "wan" "WAN" "apu2:green:led3" "eth0"
15 ucidef_set_led_netdev "lan" "LAN" "apu2:green:led2" "br-lan"
16 ucidef_set_led_default "diag" "DIAG" "apu2:green:power" "1"
17 ;;
18 traverse-technologies-geos)
19 ucidef_set_led_netdev "lan" "LAN" "geos:1" "br-lan" "tx rx"
20 ucidef_set_led_netdev "wlan" "WiFi" "geos:2" "phy0tpt"
21 ucidef_set_led_default "diag" "DIAG" "geos:3" "1"
22 ;;
23 esac
24 board_config_flush
25
26 exit 0