diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2024-08-13 19:00:15 -0700 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2024-08-13 19:00:15 -0700 |
commit | 0951beb37c88a50307e1e5872f80fb5bba36bd54 (patch) | |
tree | 4049ca8b05a3971146dd120685b2744176fa9f7a | |
parent | 903c04bd8b831acaf9a3dc863f9bbb8fc601a0d1 (diff) |
new ca wg
-rwxr-xr-x | sh/sbar | 1 | ||||
-rwxr-xr-x | sh/vip | 1 | ||||
-rwxr-xr-x | sh/vpn | 2 |
3 files changed, 3 insertions, 1 deletions
@@ -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;; @@ -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;; @@ -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 } |