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
---
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
Re: [sxmo-utils/patches/test.yml] build success
I've tested this and confirm now I have a lock with wireguard connections on wifi
symbol.
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)