aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/mediatek/filogic/base-files/etc/board.d/01_leds')
-rw-r--r--target/linux/mediatek/filogic/base-files/etc/board.d/01_leds16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds
new file mode 100644
index 0000000000..f851c7ed54
--- /dev/null
+++ b/target/linux/mediatek/filogic/base-files/etc/board.d/01_leds
@@ -0,0 +1,16 @@
+. /lib/functions/leds.sh
+. /lib/functions/uci-defaults.sh
+
+board=$(board_name)
+
+board_config_update
+
+case $board in
+xiaomi,redmi-router-ax6000)
+ ucidef_set_led_netdev "wan" "wan" "rgb:network" "wan"
+ ;;
+esac
+
+board_config_flush
+
+exit 0