From patchwork Sat Oct 19 17:38:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hoffmann X-Patchwork-Id: 1999524 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XW87B3Nfrz1xwL for ; Sun, 20 Oct 2024 04:43:16 +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:References:In-Reply-To: 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: List-Owner; bh=m7JWkKWtwMx7LLrrazIAAHRJ5moo8I6xfWx/M41G2rQ=; b=k/yATJJIK0NF46 bVDMguNGrAj5+l+xjCeioNH4BVLDHVOuUQLu4sw7Fg3cKl96L7RLbLVETRbRO/ObTiCCkOivjGJyn +AT+TFZpYc1hsQ7/3TcW54Kyuzwtqotd/51W87haTSJ6zDXgTj3NnJD7Gfw8KJSGLO/hIJtyVk8OZ 9ICMhy4NJ39tZwzjV1lKLhAkzI0XukU3hkuOZvXq0jJiGDN13iVRdiXauPoBU1gmXS1m921OFJ9WB oxeXnx027G7jJ22PbSDOMSfKAH1ggpLJ/6yXbl1Qii7VRcF4vC92C8t555VvyTkv+Q3cUP7hgS/ZD DPjkz54K00tvVztBmNqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2DSn-00000003hpI-18Zn; Sat, 19 Oct 2024 17:42:05 +0000 Received: from srv4.3e8.eu ([193.25.101.238]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2DSk-00000003ho5-0d4Q for openwrt-devel@lists.openwrt.org; Sat, 19 Oct 2024 17:42:03 +0000 Received: from localhost.localdomain (p200300c6cf3eb7a015fa183947c91018.dip0.t-ipconnect.de [IPv6:2003:c6:cf3e:b7a0:15fa:1839:47c9:1018]) (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 srv4.3e8.eu (Postfix) with ESMTPSA id 30EB340B0B; Sat, 19 Oct 2024 19:41:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=3e8.eu; s=mail20211217; t=1729359677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=C59Nle7QTAPsQMcjESuj/VFoNI8tnUtemYiIMeedgNA=; b=Lufc+gmgD6ITGh2zwT/+pRLIcK7ANKSNudNEqeo6Sem/JpMFbIhkgdLi+E1w/25Plo3V42 8r1yAZdhvOGD0DIe+Vf6KqSFFvZdX0P+7M9C6HpkhKe4y3/L3NvwMNfX1Wkr6EvvQSaqUN X+pVa4cRqwj/lTVziWWh9OG2OMs7060a5WA/WMORNz4WjEGNDvsG06yYb/cJGT+Hc/78mW hfvhLbn3gn7LBQhfIWH9ZmwPXx6B+fjY5Me1hFI5P2OsbfIgHJZiXtPdfFh5rT8hjJJ4jP 8FZYqXz7WkG2zihZ/4X+K+w+tH0ck8i2yDE2vg4o6grVvGPrWTWwXkSpC/Uttg== From: Jan Hoffmann To: openwrt-devel@lists.openwrt.org Cc: Jan Hoffmann Subject: [PATCH 3/3] ltq-adsl-app: add dsl_cpe_pipe.sh script Date: Sat, 19 Oct 2024 19:38:24 +0200 Message-ID: <20241019174041.1281093-4-jan@3e8.eu> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241019174041.1281093-1-jan@3e8.eu> References: <20241019174041.1281093-1-jan@3e8.eu> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241019_104202_353566_CFC423B3 X-CRM114-Status: UNSURE ( 9.65 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) 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: This allows to obtain detailed diagnostic information about the DSL connection from the modem. The script is copied from the corresponding packages for VDSL modems. Signed-off-by: Jan Hoffmann --- package/network/config/ltq-adsl-app/Makefile | 3 ++- .../config/ltq-adsl-app/files/dsl_cpe_pipe.sh | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+ [...] Content analysis details: (-2.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -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 -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [193.25.101.238 listed in sa-accredit.habeas.com] 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [193.25.101.238 listed in sa-trusted.bondedsender.org] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [193.25.101.238 listed in bl.score.senderscore.com] 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 This allows to obtain detailed diagnostic information about the DSL connection from the modem. The script is copied from the corresponding packages for VDSL modems. Signed-off-by: Jan Hoffmann --- package/network/config/ltq-adsl-app/Makefile | 3 ++- .../config/ltq-adsl-app/files/dsl_cpe_pipe.sh | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 package/network/config/ltq-adsl-app/files/dsl_cpe_pipe.sh diff --git a/package/network/config/ltq-adsl-app/Makefile b/package/network/config/ltq-adsl-app/Makefile index 94e2e9d0d77d..b96a3f71e5bd 100644 --- a/package/network/config/ltq-adsl-app/Makefile +++ b/package/network/config/ltq-adsl-app/Makefile @@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=dsl_cpe_control_danube PKG_VERSION:=3.24.4.4 -PKG_RELEASE:=12 +PKG_RELEASE:=13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_BUILD_DIR:=$(BUILD_DIR)/dsl_cpe_control-$(PKG_VERSION) PKG_SOURCE_URL:=@OPENWRT @@ -77,6 +77,7 @@ define Package/ltq-adsl-app/install $(INSTALL_BIN) ./files/10_atm.sh $(1)/etc/hotplug.d/dsl $(INSTALL_BIN) ./files/10_ptm.sh $(1)/etc/hotplug.d/dsl $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin + $(INSTALL_BIN) ./files/dsl_cpe_pipe.sh $(1)/sbin/ endef $(eval $(call BuildPackage,ltq-adsl-app)) diff --git a/package/network/config/ltq-adsl-app/files/dsl_cpe_pipe.sh b/package/network/config/ltq-adsl-app/files/dsl_cpe_pipe.sh new file mode 100755 index 000000000000..9002b7b3164a --- /dev/null +++ b/package/network/config/ltq-adsl-app/files/dsl_cpe_pipe.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +pipe_no=0 + +# use specified pipe no +case "$1" in +0|1|2) +pipe_no=$1; shift; ;; +esac + + +#echo "Call dsl_pipe with $*" +lock /var/lock/dsl_pipe +echo $* > /tmp/pipe/dsl_cpe${pipe_no}_cmd +result=$(cat /tmp/pipe/dsl_cpe${pipe_no}_ack) +lock -u /var/lock/dsl_pipe + +echo "$result"