Message ID | 20201215093531.1763475-9-a.heider@gmail.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=zTkbkQ9p; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Ne+eC4xq; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (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 ozlabs.org (Postfix) with ESMTPS id 4CwCph4nysz9sS8 for <incoming@patchwork.ozlabs.org>; Tue, 15 Dec 2020 20:37:32 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:To:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=S79m8IgxLp++CZYSqF/1C0ZNqUeV2OmflqnLPUNJxD0=; b=zTkbkQ9pmJQgIEe2i5kBX9NHph YVNCKp54MHENenlt8kBaDIr9wHfAh9j7iRdOyoWYsFWHoxzNG5EQgcYLWqYcw5ldn+51iH0Hctz/f KJz9EyeAxt8vHz6mOko9cHODHPHn+3Hx55//eaB6uO2U4Ts2x3E0MhTTFDqJKiiURl9qqmWei7Z8F 9MB3kqfJcgGkX56gojIb+pupweIR/ZbG4b3GPPpT5ksaKX5PqwNq+fmh2Ugw1SLbhGlJWNkclDZC3 GUI0HWv5CfgTYdWzsAtglOw8NlCPKCRNf6yFCOV5ggv54vUKAt263pkJUztZ/kGpnzKZceePEs6Iy daQALObg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kp6kc-0000jx-3a; Tue, 15 Dec 2020 09:36:10 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kp6k9-0000Zr-3P for openwrt-devel@lists.openwrt.org; Tue, 15 Dec 2020 09:35:45 +0000 Received: by mail-wm1-x344.google.com with SMTP id g185so17818064wmf.3 for <openwrt-devel@lists.openwrt.org>; Tue, 15 Dec 2020 01:35:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=zZP/P0RDA5XN3PxY9tK6FvgGK3mnH3a0LdZHZUEKr30=; b=Ne+eC4xqAI+zpIFj61Drfm+crs/txzKrpPxkIwTjAVvIKfP6Qw9dJQbenADNpWhMWi AThNjutl5m192de4P51WUoy2KMJ89Z1gFkYSchNhR+grB4JYx+gOvoDNRPMK4345JOWt cKN6YLfRWYp+lF3y9qYGTDyYTlhsPJyaC6E3Z9yHOm/IWKjxD4vrPQyMq2w9ajsRXS+2 ZfageykDlGcfNjqLxddpkzwRiRMPalKHaV4yP4XAeVOE93d+znJLs6c6sW8VdylxoC9q IoiqDlFYbVsWVSpK1/rVdx0YOiP/JPgzmVe4KKPVZC+dARpnWUBxrRJ8/tH5tIHI6SxN JKcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zZP/P0RDA5XN3PxY9tK6FvgGK3mnH3a0LdZHZUEKr30=; b=U8Q3uVHoV5gF35CEIUHunqAwX+a2FbUW83EL2DaUlVpW+HQ7Bjkiyryv5/ZcgJuEDJ f3zOChBslEKqhnKJQ8PTYf+8frtHI6OUnkkrtMIPZ46vVgF1Mv7vn5OdgyX2gpxUQGb6 /Dsy848jCltoEKFtDKi0f6MF5+JDwRGMgMkbtUoR5rgqnBGiip7rMXl50QTp2mFN5y4O IoWD/KbUaHPOYc4DXROxrHWilwn3jj5owLX/UmZIpriD9iEe4mgLdhmB/x4NhPGSXoqf F96rAmYzG2qjNOxodxfMWEhstdLHk2lX3dj1LTzkccIVT2QeHDdjwV/aP/8eQYHQLkQb fSug== X-Gm-Message-State: AOAM533hhn5dnQ1sqn2UKxAKp6HsMHjabnTWCClM3uZ9MbZIJ2IQpx8b /YND86Og9jZh0g2ODeiTgMGaeyl6gYafgg== X-Google-Smtp-Source: ABdhPJytGbfwpFrMGtPRah8KhHcxaotfybBdFLJHSt+dvHt+g3KFx3MVH4LpVXA4P/jzH8Bv6Dbdzw== X-Received: by 2002:a1c:35c2:: with SMTP id c185mr32411130wma.74.1608024940033; Tue, 15 Dec 2020 01:35:40 -0800 (PST) Received: from mamamia.internal (a89-182-183-191.net-htp.de. [89.182.183.191]) by smtp.gmail.com with ESMTPSA id i8sm35133423wma.32.2020.12.15.01.35.39 for <openwrt-devel@lists.openwrt.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 01:35:39 -0800 (PST) From: Andre Heider <a.heider@gmail.com> To: openwrt-devel@lists.openwrt.org Subject: [PATCH 08/12] ltq-adsl-app: use ubus to provide metrics Date: Tue, 15 Dec 2020 10:35:27 +0100 Message-Id: <20201215093531.1763475-9-a.heider@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201215093531.1763475-1-a.heider@gmail.com> References: <20201215093531.1763475-1-a.heider@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201215_043541_193510_ECF1E47B X-CRM114-Status: UNSURE ( 9.45 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:344 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [a.heider[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
add ubus support to ltq-[v|a]dsl-app
|
expand
|
diff --git a/package/network/config/ltq-adsl-app/files/dsl_control b/package/network/config/ltq-adsl-app/files/dsl_control index 49c342d9d5..4bd6e860e8 100644 --- a/package/network/config/ltq-adsl-app/files/dsl_control +++ b/package/network/config/ltq-adsl-app/files/dsl_control @@ -4,10 +4,11 @@ START=97 USE_PROCD=1 -extra_command "dslstat" "Get DSL status information" -extra_command "lucistat" "Get status information in lua friendly format" +dslstat() { + ubus call dsl metrics +} -. /lib/functions/lantiq_dsl.sh +extra_command "dslstat" "Get DSL status information" annex_b=10_00_10_00_00_04_00_00 annex_bdmt=10_00_00_00_00_00_00_00
luci now uses ubus directly, so remove 'lucistat'. For manual usage just print the ubus output, use luci for a pretty version. Signed-off-by: Andre Heider <a.heider@gmail.com> --- package/network/config/ltq-adsl-app/files/dsl_control | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)