From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B42751584F2 for ; Tue, 18 Mar 2025 21:50:32 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 80C463432B2 for ; Tue, 18 Mar 2025 21:50:32 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id C78811103C8; Tue, 18 Mar 2025 21:50:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id BC3991103C8 for ; Tue, 18 Mar 2025 21:50:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id 779E33431D3 for ; Tue, 18 Mar 2025 21:50:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C248C283B for ; Tue, 18 Mar 2025 21:50:25 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1742334622.a2364ad88e9d31701cd2ba6380f6cdb99eee03ac.sam@OpenRC> Subject: [gentoo-commits] proj/netifrc:master commit in: net/ X-VCS-Repository: proj/netifrc X-VCS-Files: net/qmi.sh X-VCS-Directories: net/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a2364ad88e9d31701cd2ba6380f6cdb99eee03ac X-VCS-Branch: master Date: Tue, 18 Mar 2025 21:50:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 70812ac7-d22b-4f7a-a6f9-22b4957b0319 X-Archives-Hash: 62a7a936816738d0f286c79ccceb7625 commit: a2364ad88e9d31701cd2ba6380f6cdb99eee03ac Author: Alon Bar-Lev gmail com> AuthorDate: Wed Feb 5 17:15:02 2025 +0000 Commit: Sam James gentoo org> CommitDate: Tue Mar 18 21:50:22 2025 +0000 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=a2364ad8 net: qmi: support adding extra arguments extra arguments are usable for tweaking the device and interface with custom parameters which are not usable for generic case. Signed-off-by: Alon Bar-Lev gmail.com> Closes: https://github.com/gentoo/netifrc/pull/61 Signed-off-by: Sam James gentoo.org> net/qmi.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net/qmi.sh b/net/qmi.sh index ac1b2dd..6839c99 100644 --- a/net/qmi.sh +++ b/net/qmi.sh @@ -30,6 +30,7 @@ qmi_pre_start() { local auth local username local password + local qmicli_extra_args local out local rc @@ -38,6 +39,7 @@ qmi_pre_start() { eval auth=\$qmi_auth_${IFVAR} eval username=\$qmi_username_${IFVAR} eval password=\$qmi_password_${IFVAR} + eval qmicli_extra_args=\$qmi_qmicli_extra_args_${IFVAR} [ -n "${apn}" ] || return 0 @@ -63,10 +65,11 @@ qmi_pre_start() { fi fi + ebegin "Connecting QMI APN '${apn}' using '${username}' and qmicli extra args '${qmicli_extra_args}'" + local wwan_connection="apn='${apn}',auth='${auth}',username='${username}',password='${password}',autoconnect=yes,ip-type=4" local n for n in 1 2 3; do - ebegin "Connecting QMI APN '${apn}' using '${username}'" if out="$( \ qmicli \ @@ -74,6 +77,7 @@ qmi_pre_start() { --wds-start-network="${wwan_connection}" \ --device-open-proxy \ --client-no-release-cid \ + ${qmicli_extra_args} \ )"; then eend 0 break