From patchwork Wed Mar 16 10:32:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Eckert X-Patchwork-Id: 1606104 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=TIC4QszM; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KJRWW5l07z9sCD for ; Wed, 16 Mar 2022 21:35:49 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=uTdHM5iNNu3JG7YISR8f39gSjg++vKLhF4IFU+g4n1Y=; b=TIC4QszMnucCz3 m/3c9BpcnpyYEYizIC+e7NS7MlMWX8YaBaaSqc+YFci/YM2awm4xL8rYPdloqk7By5p0QsORtg3IM WFzPhb2lbvbhEXAD5SOwbB3FPa/qqvuX2PE+elREh9lOziK/LoKfgNuWERMZUriZXOG2mJlPwHM4Q jPTDPfX19tH6tlQQJPwu/8yUJPSeI8evjimd2LscWia+Cqsq9OE2RUihoyqlGvBj6sD+u2DBnMlMw YPWvw1zXhMkzN5L0iztAaC4zVO1M2OWVIcz5WsVhQO+daDDTzERLrM3yBinqPdRyMxlI8ZAPf+Bbi ZGYFZoD4Ot14IdPFczHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nUQxE-00CUYP-F5; Wed, 16 Mar 2022 10:32:32 +0000 Received: from mxout70.expurgate.net ([194.37.255.70]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nUQx7-00CUXF-Tc for openwrt-devel@lists.openwrt.org; Wed, 16 Mar 2022 10:32:27 +0000 Received: from [127.0.0.1] (helo=localhost) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from ) id 1nUQx2-000L67-16; Wed, 16 Mar 2022 11:32:20 +0100 Received: from [195.243.126.94] (helo=securemail.tdt.de) by relay.expurgate.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUQx1-0004d1-5d; Wed, 16 Mar 2022 11:32:19 +0100 Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id CD141240049; Wed, 16 Mar 2022 11:32:18 +0100 (CET) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id 719C3240040; Wed, 16 Mar 2022 11:32:18 +0100 (CET) Received: from localhost.localdomain (unknown [10.2.3.40]) by mail.dev.tdt.de (Postfix) with ESMTPSA id DC75A25321; Wed, 16 Mar 2022 11:32:17 +0100 (CET) From: Florian Eckert To: daniel@makrotopia.org, hauke@hauke-m.de Cc: Eckert.Florian@googlemail.com, openwrt-devel@lists.openwrt.org Subject: [PATCH] base-files: add uci section name for application led trigger handling Date: Wed, 16 Mar 2022 11:32:13 +0100 Message-ID: <20220316103213.16835-1-fe@dev.tdt.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dev.tdt.de X-purgate-ID: 151534::1647426739-0001045C-6CA2D6BA/0/0 X-purgate: clean X-purgate-type: clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220316_033226_147696_2EED939E X-CRM114-Status: GOOD ( 10.62 ) X-Spam-Score: -0.7 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: In order to read out additional options from the uci section in the called led trigger script, this section must also be add as a argument to the application led trigger script. Signed-off-by: Florian Eckert --- package/base-files/files/etc/init.d/led | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Content analysis details: (-0.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [194.37.255.70 listed in list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org In order to read out additional options from the uci section in the called led trigger script, this section must also be add as a argument to the application led trigger script. Signed-off-by: Florian Eckert --- package/base-files/files/etc/init.d/led | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led index 51cb8b5178..80db46f4f8 100755 --- a/package/base-files/files/etc/init.d/led +++ b/package/base-files/files/etc/init.d/led @@ -33,7 +33,7 @@ load_led() { # execute application led trigger [ -f "/usr/libexec/led-trigger/${trigger}" ] && { - . "/usr/libexec/led-trigger/${trigger}" + . "/usr/libexec/led-trigger/${trigger}" "$1" return 0 }