Message ID | 1466346824-26282-1-git-send-email-dev@kresin.me |
---|---|
State | Accepted |
Headers | show
Return-Path: <lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rXc3G2rvqz9s2Q for <incoming@patchwork.ozlabs.org>; Mon, 20 Jun 2016 00:35:22 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kresin-me.20150623.gappssmtp.com header.i=@kresin-me.20150623.gappssmtp.com header.b=w2SZHJIB; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bEdnh-00041t-1u; Sun, 19 Jun 2016 14:34:13 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bEdnd-0003yW-Av for lede-dev@lists.infradead.org; Sun, 19 Jun 2016 14:34:11 +0000 Received: by mail-wm0-x242.google.com with SMTP id c82so5357997wme.3 for <lede-dev@lists.infradead.org>; Sun, 19 Jun 2016 07:33:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kresin-me.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=vpJ4qkzBrtDcgPg0A/pOfFgWlDwoV8W17pWZwRmO1dU=; b=w2SZHJIBvU2lL2pgESXRClMMBRN1j2Luyc6tpweTpqlU4/OacLtgv6s2Na6xqDv+Lt H1YyuKJeu0EhGeQoo872Nv+vXIfw8bo5Mbd2r1E9lJGZUqrw6vib45o/DvyE9w4UW3Ba gdqIAM91UTTaxMNf993vb8Cji20oye/7016ktEIX2kxxDRkqbAv+jUjLW5UKWY130MFZ urXTIrhUtheiXmNz6jYqNQxSQD/HAegd3OaijCAjhdo9pw0H1i/JIxt5W/KxCcs2hz8y BjmqHHFns8+tfOzEuUbAY/0eALVc2Leq6q07xYjAyECnMCOfBLpm+h90eBhu741HbPH3 yuZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=vpJ4qkzBrtDcgPg0A/pOfFgWlDwoV8W17pWZwRmO1dU=; b=IVWkMOz/ZxnSDKVGSfUlwGr7boTJ5ucn55eGTOOf+yvJ3uRCcVFm5CkpWeosgL8sUC gd5jqeX8eytpnecjFkd55sfTpsg9IUrLoFJhh4MMxrunloQZV2SpUCghx6HH8y4npokI 5+GzoyW3JLp+OVoDZ+3pDV716In48eLO+vcRDpsXC3HOidD64Q0hV5aOsOmfiJS0ukTw R0ejtMBrCKI75AlnQFu8D9sxZVOFB6yuygM/FpS69LD9udPLiGr+cOOem3JwwQ7AALvF R+V6zQdmHsBBYcpiTD3ILthJY7IyNDNgHn5dhP712kVDUQIeYIl4hfypLf+xpkBvqsFj RYMw== X-Gm-Message-State: ALyK8tIWQu7trdVbsJKeqp+5bLnmh8hMbndE2wUjqppk8A1b/AEParkvzcc4KazyfLBAHA== X-Received: by 10.194.39.202 with SMTP id r10mr10072820wjk.93.1466346827926; Sun, 19 Jun 2016 07:33:47 -0700 (PDT) Received: from desktop.wvd.kresin.me (p5DDC653E.dip0.t-ipconnect.de. [93.220.101.62]) by smtp.gmail.com with ESMTPSA id bf5sm897080wjc.12.2016.06.19.07.33.47 for <lede-dev@lists.infradead.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 19 Jun 2016 07:33:47 -0700 (PDT) From: Mathias Kresin <dev@kresin.me> To: lede-dev@lists.infradead.org Date: Sun, 19 Jun 2016 16:33:44 +0200 Message-Id: <1466346824-26282-1-git-send-email-dev@kresin.me> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160619_073409_535798_61AF19A1 X-CRM114-Status: UNSURE ( 9.05 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:242 listed in] [list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid Subject: [LEDE-DEV] [PATCH] lantiq: diag - switch off the power led on failsafe X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <lede-dev.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/lede-dev>, <mailto:lede-dev-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/lede-dev/> List-Post: <mailto:lede-dev@lists.infradead.org> List-Help: <mailto:lede-dev-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/lede-dev>, <mailto:lede-dev-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Lede-dev" <lede-dev-bounces@lists.infradead.org> Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
diff --git a/target/linux/lantiq/base-files/etc/diag.sh b/target/linux/lantiq/base-files/etc/diag.sh index 71d6f3e..f6363b3 100644 --- a/target/linux/lantiq/base-files/etc/diag.sh +++ b/target/linux/lantiq/base-files/etc/diag.sh @@ -17,6 +17,10 @@ set_state() { ;; failsafe) status_led_off + [ -n "$running" ] && { + status_led="$running" + status_led_off + } status_led="$failsafe" status_led_blink_failsafe ;;
This patch is a follow up to commit 4cf3fd4 "add support for indicating the boot state using three leds". At the time of writing the patch, I wasn't aware that it's possible to switch info failsafe after boot (factory reset). Enabling the failsafe led without disabling the running led causes an unexpected led colour on devices using a single multicolour led to indicate the boot state. Signed-off-by: Mathias Kresin <dev@kresin.me> --- target/linux/lantiq/base-files/etc/diag.sh | 4 ++++ 1 file changed, 4 insertions(+)