aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/cortexa53
diff options
context:
space:
mode:
authorJeff Collins <jeffcollins9292@gmail.com>2021-02-25 11:11:58 -0500
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-02-26 13:57:50 +0100
commit6e0c780eb3b4ba1e52216c1d671897749dd81829 (patch)
tree34c7b5a082c7f21525c0bb014b399d5ef05ac293 /target/linux/mvebu/cortexa53
parenta6f7268dc7519b57251532fe4239412e8acf4ca7 (diff)
downloadupstream-6e0c780eb3b4ba1e52216c1d671897749dd81829.tar.gz
upstream-6e0c780eb3b4ba1e52216c1d671897749dd81829.tar.bz2
upstream-6e0c780eb3b4ba1e52216c1d671897749dd81829.zip
mvebu: add LED support for GL.iNet GL-MV1000
This patch enables LED support for the GL.iNet GL-MV1000 Signed-off-by: Jeff Collins <jeffcollins9292@gmail.com> [add SPDX identifier on new file, add aliases, minor cosmetic issues] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/mvebu/cortexa53')
-rwxr-xr-xtarget/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds18
1 files changed, 18 insertions, 0 deletions
diff --git a/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds b/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds
new file mode 100755
index 0000000000..42f4deb88a
--- /dev/null
+++ b/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds
@@ -0,0 +1,18 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-only
+
+. /lib/functions/uci-defaults.sh
+
+board_config_update
+
+board=$(board_name)
+
+case "$board" in
+glinet,gl-mv1000)
+ ucidef_set_led_netdev "wan" "WAN" "green:wan" "wan"
+ ;;
+esac
+
+board_config_flush
+
+exit 0