summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh')
-rwxr-xr-xsh/sbar1
-rwxr-xr-xsh/vip1
-rwxr-xr-xsh/vpn2
3 files changed, 3 insertions, 1 deletions
diff --git a/sh/sbar b/sh/sbar
index e144511..b378619 100755
--- a/sh/sbar
+++ b/sh/sbar
@@ -17,6 +17,7 @@ update_net () {
net="$(if nmcli -t --fields type,state device | grep -q '^\(ethernet\|wifi\):connected$'; then echo 1; else echo 0; fi)"
case "$(nmcli -t --fields device,state device)" in
*wg_aa:connected*) wg=A;;
+ *wg_ca:connected*) wg=C;;
*wg_ia:connected*) wg=I;;
*wg_mydefault:connected*) wg=D;;
*wg_studio:connected*) wg=S;;
diff --git a/sh/vip b/sh/vip
index d7adbf2..74e5c3f 100755
--- a/sh/vip
+++ b/sh/vip
@@ -3,6 +3,7 @@
case "$(nmcli -t --fields device,state device)" in
*wg_aa:connected*) echo aa;;
+ *wg_ca:connected*) echo ca;;
*wg_ia:connected*) echo ia;;
*wg_mydefault:connected*) echo mydefault;;
*wg_studio:connected*) echo studio;;
diff --git a/sh/vpn b/sh/vpn
index 5ef5017..126c608 100755
--- a/sh/vpn
+++ b/sh/vpn
@@ -2,7 +2,7 @@
# toggle VPN
down_not_mydefault () {
- for v in wg_studio wg_ia wg_aa; do
+ for v in wg_studio wg_ia wg_aa wg_ca; do
nmcli connection down "$v"
done
}