gl-infra-builder-FUjr/patches-22.03.2/3006-mvebu-adjust-01-leds.patch
2023-04-12 05:46:18 -04:00

38 lines
1.1 KiB
Diff

From 1592185f17d4f13518d95a24b9289aab374540af Mon Sep 17 00:00:00 2001
From: Weiping Yang <weiping.yang@gl-inet.com>
Date: Sat, 25 Feb 2023 04:16:01 -0500
Subject: [PATCH] mvebu-adjust-01-leds
---
.../linux/mvebu/cortexa53/base-files/etc/board.d/01_leds | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
mode change 100644 => 100755 target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds
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
old mode 100644
new mode 100755
index 4dce204f14..0f7b53a8dd
--- a/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds
+++ b/target/linux/mvebu/cortexa53/base-files/etc/board.d/01_leds
@@ -1,3 +1,5 @@
+#!/bin/sh
+#
# SPDX-License-Identifier: GPL-2.0-only
. /lib/functions/uci-defaults.sh
@@ -7,8 +9,9 @@ board_config_update
board=$(board_name)
case "$board" in
-glinet,gl-mv1000)
- ucidef_set_led_netdev "wan" "WAN" "green:wan" "wan"
+glinet,gl-mv1000|\
+gl-mv1000)
+ ucidef_set_led_netdev "wan" "WAN" "gl-mv1000:white:wan" "wan"
;;
esac
--
2.17.1