sxmo_hook_statusbar.sh: include wireguard when searching for vpn

Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
This commit is contained in:
Joshua Murphy
2023-06-09 17:59:45 +00:00
committed by Peter John Hartman
parent 2a1782f397
commit a63a678077

View File

@@ -227,7 +227,7 @@ set_wifi() {
# if they have a vpn nmcli c shown --active should also list: # if they have a vpn nmcli c shown --active should also list:
# tun0 ef5fcce9-fdae-4ffe-a540-b16fc7b42852 tun tun0 # 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 wifivpn=1
else else
wifivpn=0 wifivpn=0
@@ -444,4 +444,3 @@ case "$1" in
exit # swallow it ! exit # swallow it !
;; ;;
esac esac