From 0c40e003145789e027e69f51425ac4201f369d58 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sun, 21 Apr 2024 22:13:17 -0700 Subject: remove ka vps --- sh/vip | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sh/vip') diff --git a/sh/vip b/sh/vip index 0a0815f..0dd5963 100755 --- a/sh/vip +++ b/sh/vip @@ -3,7 +3,6 @@ case "$(nmcli -t --fields device,state device)" in *wg_ia:connected*) echo ia;; - *wg_ka:connected*) echo ka;; *wg_mydefault:connected*) echo mydefault;; *wg_studio:connected*) echo studio;; *) echo none;; @@ -14,8 +13,8 @@ printf '6: '; curl -6m1 ifconfig.co # the old way, slower and more code #nm_device_state="$(nmcli -t --fields device,state device)" -#if echo "$nm_device_state" | grep -q '^wg_ka:connected$'; then -# echo ka +#if echo "$nm_device_state" | grep -q '^wg_ia:connected$'; then +# echo ia #elif echo "$nm_device_state" | grep -q '^wg_studio:connected$'; then # echo studio #else -- cgit v1.2.3-70-g09d2