~mil/sxmo-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH sxmo-utils] autodetect modem ifname

Details
Message ID
<20210322191605.15526-1-begs@disroot.org>
DKIM signature
pass
Download raw message
Patch: +8 -1
---
 scripts/core/sxmo_networks.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/scripts/core/sxmo_networks.sh b/scripts/core/sxmo_networks.sh
index f60cc9f..2de9d82 100755
--- a/scripts/core/sxmo_networks.sh
+++ b/scripts/core/sxmo_networks.sh
@@ -35,6 +35,13 @@ deletenetworkmenu() {
	fi
}

getifname() {
	IFTYPE="$1"
	IFNAME="$(nmcli d | grep -m 1 "$IFTYPE" | cut -d' ' -f1)"
	[ -z "$IFNAME" ] && notify-send "No interface with type $IFTYPE found" && IFNAME=lo
	echo "$IFNAME"
}

addnetworkgsmmenu() {
	CONNNAME="$(
		echo "Close Menu" |
@@ -51,7 +58,7 @@ addnetworkgsmmenu() {
	# TODO: Support gsm bearer username & password
	nmcli c add \
		type gsm \
		ifname cdc-wdm0 \
		ifname "$(getifname gsm)" \
		con-name "$CONNNAME" \
		apn "$APN"
}
-- 
2.31.0

[sxmo-utils/patches/.build.yml] build success

builds.sr.ht
Details
Message ID
<CA44ER32XPN9.LV1PSPHUD806@cirno2>
In-Reply-To
<20210322191605.15526-1-begs@disroot.org> (view parent)
DKIM signature
missing
Download raw message
sxmo-utils/patches/.build.yml: SUCCESS in 23s

[autodetect modem ifname][0] from [Maxim Karasev][1]

[0]: https://lists.sr.ht/~mil/sxmo-devel/patches/21380
[1]: begs@disroot.org

✓ #466947 SUCCESS sxmo-utils/patches/.build.yml https://builds.sr.ht/~mil/job/466947
Details
Message ID
<20210322205355.gu6pilqnygazksjd@worker.anaproy.lxd>
In-Reply-To
<20210322191605.15526-1-begs@disroot.org> (view parent)
DKIM signature
missing
Download raw message
Thanks! I have applied your patch!

--

Maarten van Gompel (proycon)
https://proycon.anaproy.nl
Reply to thread Export thread (mbox)