mvebu: puzzle: wan LED and fix default network
[openwrt/staging/chunkeey.git] / target / linux / mvebu / cortexa72 / base-files / etc / board.d / 01_leds
diff --git a/target/linux/mvebu/cortexa72/base-files/etc/board.d/01_leds b/target/linux/mvebu/cortexa72/base-files/etc/board.d/01_leds
new file mode 100644 (file)
index 0000000..809a64a
--- /dev/null
@@ -0,0 +1,20 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+. /lib/functions/uci-defaults.sh
+
+board_config_update
+
+board=$(board_name)
+
+case "$board" in
+iei,puzzle-m901)
+       ucidef_set_led_netdev "wan" "WAN" "white:network" "eth0" "link"
+       ;;
+iei,puzzle-m902)
+       ucidef_set_led_netdev "wan" "WAN" "white:network" "eth2" "link"
+       ;;
+esac
+
+board_config_flush
+
+exit 0