From a63a67807711b2c4ff1dd23fbc69c12e1e802c7e Mon Sep 17 00:00:00 2001 From: Joshua Murphy Date: Fri, 9 Jun 2023 17:59:45 +0000 Subject: [PATCH] sxmo_hook_statusbar.sh: include wireguard when searching for vpn Signed-off-by: Peter John Hartman --- 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 -