From 80d5c54225e115ec0f260c253f14db25fbc7d117 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 8 Jan 2025 20:11:42 -0800 Subject: fix typos with `typos` --- sh/vpn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sh/vpn') diff --git a/sh/vpn b/sh/vpn index bdda294..7898e57 100755 --- a/sh/vpn +++ b/sh/vpn @@ -13,7 +13,7 @@ wg_aa_restore_default () { case "$(nmcli -t --fields device,state device)" in # stop aa wireguard+swgp server that listen from insp wiregurad+swgp client, start aa wg+swgp connect to ca # use /usr/bin/alacritty instead of /home/xyz/.local/bin/alacritty so script can wait until alacritty exit to run other codes following - *wg_aa:connected*) /usr/bin/alacritty -T aa --hold -e sh -c 'echo "Wait for aa sudo prompt and enter password, then manully close this window:"; ssh -t aawg "sudo systemctl stop wg-quick@wg0 && sudo systemctl start wg-quick@wg_ca"';; + *wg_aa:connected*) /usr/bin/alacritty -T aa --hold -e sh -c 'echo "Wait for aa sudo prompt and enter password, then manually close this window:"; ssh -t aawg "sudo systemctl stop wg-quick@wg0 && sudo systemctl start wg-quick@wg_ca"';; esac } @@ -33,7 +33,7 @@ if nmcli -t --fields device,state device | grep -q "^wg_$1:connected$"; then notify-send -u critical "$1 VPN disabled" else if [ "$1" = aa ]; then - /usr/bin/alacritty -T aa --hold -e sh -c 'echo "Wait for aa sudo prompt and enter password, then manully close this window"; ssh -t aawg "sudo systemctl stop wg-quick@wg_ca && sudo systemctl start wg-quick@wg0"' + /usr/bin/alacritty -T aa --hold -e sh -c 'echo "Wait for aa sudo prompt and enter password, then manually close this window"; ssh -t aawg "sudo systemctl stop wg-quick@wg_ca && sudo systemctl start wg-quick@wg0"' fi down_not_mydefault nmcli connection down wg_mydefault -- cgit v1.2.3-70-g09d2