[LEDE-DEV] [PATCH] kirkwood: disable fault LEDs by default

p.wassi at gmx.at p.wassi at gmx.at
Sat Oct 22 12:46:50 PDT 2016


From: P.Wassi <p.wassi at gmx.at>

Set the default value for status-fault LEDs to '0'

Signed-off-by: P.Wassi <p.wassi at gmx.at>
---
The kirkwood-dockstar, kirkwood-goflex* and kirkwood-pogoplug devices have
one duo-color status LED (green+orange / health+fault).
For the dockstar and pogoplug the orange fault LED is enabled by default.
(This is not the case for goflex*-devices).
This patch unifies the behaviour and disabled the fault LED during bootup.

linux/kirkwood/base-files/etc/board.d/01_leds |    4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/kirkwood/base-files/etc/board.d/01_leds b/target/linux/kirkwood/base-files/etc/board.d/01_leds
--- a/target/linux/kirkwood/base-files/etc/board.d/01_leds
+++ b/target/linux/kirkwood/base-files/etc/board.d/01_leds
@@ -13,7 +13,7 @@ board=$(kirkwood_board_name)
 case "$board" in
 "dockstar")
        ucidef_set_led_default "health" "health" "status:green:health" "1"
-       ucidef_set_led_default "fault" "fault" "status:orange:fault" "1"
+       ucidef_set_led_default "fault" "fault" "status:orange:fault" "0"
        ;;
 "linksys-audi")
        ucidef_set_led_default "power" "power" "audi:green:power" "1"
@@ -33,7 +33,7 @@ case "$board" in
        ;;
 "pogo_e02")
        ucidef_set_led_default "health" "health" "pogo_e02:green:health" "1"
-       ucidef_set_led_default "fault" "fault" "pogo_e02:orange:fault" "1"
+       ucidef_set_led_default "fault" "fault" "pogo_e02:orange:fault" "0"
        ;;
 "guruplug-server-plus")
        ucidef_set_led_timer "health" "health" "guruplug:red:health" "200" "800"



More information about the Lede-dev mailing list