~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
3 4

[PATCH sxmo-utils] sxmo_hook_statusbar.sh: include wireguard when searching for vpn

Details
Message ID
<20230609175944.5572-2-joshuamurphy@posteo.net>
DKIM signature
missing
Download raw message
Patch: +1 -2
---
 configs/default_hooks/sxmo_hook_statusbar.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/configs/default_hooks/sxmo_hook_statusbar.sh b/configs/default_hooks/sxmo_hook_statusbar.sh
index cc5344a..3825f2f 100755
--- a/configs/default_hooks/sxmo_hook_statusbar.sh
+++ b/configs/default_hooks/sxmo_hook_statusbar.sh
@@ -227,7 +227,7 @@ set_wifi() {

	# if they have a vpn nmcli c shown --active should also list:
	# tun0              ef5fcce9-fdae-4ffe-a540-b16fc7b42852  tun   tun0
	if printf %b "$CONN" | cut -d':' -f3 | grep -q ^tun$; then
	if printf %b "$CONN" | cut -d':' -f3 | grep -q -E "^tun$|^wireguard$"; then
		wifivpn=1
	else
		wifivpn=0
@@ -444,4 +444,3 @@ case "$1" in
		exit # swallow it !
		;;
esac

-- 
2.41.0

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

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CT8BEH1S857C.17EBD0L5TLRUH@cirno2>
In-Reply-To
<20230609175944.5572-2-joshuamurphy@posteo.net> (view parent)
DKIM signature
missing
Download raw message
sxmo-utils/patches/test.yml: SUCCESS in 58s

[sxmo_hook_statusbar.sh: include wireguard when searching for vpn][0] from [Joshua Murphy][1]

[0]: https://lists.sr.ht/~mil/sxmo-devel/patches/41767
[1]: joshuamurphy@posteo.net

✓ #1004394 SUCCESS sxmo-utils/patches/test.yml https://builds.sr.ht/~mil/job/1004394

Re: [sxmo-utils/patches/test.yml] build success

Details
Message ID
<SYBP282MB2382D6E4FBA4628012D46C81F754A@SYBP282MB2382.AUSP282.PROD.OUTLOOK.COM>
In-Reply-To
<CT8BEH1S857C.17EBD0L5TLRUH@cirno2> (view parent)
DKIM signature
missing
Download raw message
I've tested this and confirm now I have a lock with wireguard connections on wifi
symbol.
Details
Message ID
<ZOyMdHKiGJ277ot4@durand.trilidun.org>
In-Reply-To
<20230609175944.5572-2-joshuamurphy@posteo.net> (view parent)
DKIM signature
missing
Download raw message
Thank you! Applied.

On Fri, Jun 09, 2023 at 05:59:45PM +0000, Joshua Murphy wrote:
>---
> configs/default_hooks/sxmo_hook_statusbar.sh | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
>diff --git a/configs/default_hooks/sxmo_hook_statusbar.sh b/configs/default_hooks/sxmo_hook_statusbar.sh
>index cc5344a..3825f2f 100755
>--- a/configs/default_hooks/sxmo_hook_statusbar.sh
>+++ b/configs/default_hooks/sxmo_hook_statusbar.sh
>@@ -227,7 +227,7 @@ set_wifi() {
>
> 	# if they have a vpn nmcli c shown --active should also list:
> 	# tun0              ef5fcce9-fdae-4ffe-a540-b16fc7b42852  tun   tun0
>-	if printf %b "$CONN" | cut -d':' -f3 | grep -q ^tun$; then
>+	if printf %b "$CONN" | cut -d':' -f3 | grep -q -E "^tun$|^wireguard$"; then
> 		wifivpn=1
> 	else
> 		wifivpn=0
>@@ -444,4 +444,3 @@ case "$1" in
> 		exit # swallow it !
> 		;;
> esac
>-
>-- 
>2.41.0
>

--
sic dicit magister P
https://phartman.sites.luc.edu/
GPG keyID 0xE0DBD3D6 (CAE6 3A6F 755F 7BC3 36CA  330D B3E6 39C6 E0DB D3D6)
Reply to thread Export thread (mbox)