From 07d5ab0145a35c10994cbb7468b589331035cf9b Mon Sep 17 00:00:00 2001 From: punix Date: Mon, 27 Nov 2023 12:11:16 +0100 Subject: [PATCH] autoconnect.no to import --- wire_g | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wire_g b/wire_g index 4ddad00..a31a83b 100755 --- a/wire_g +++ b/wire_g @@ -99,14 +99,13 @@ import_wg(){ then wg_stop nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt - nmcli con mod "$WG_CONF" connection.autoconnect no wg_notify else kill $lines nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt - nmcli con mod "$WG_CONF" connection.autoconnect no wg_notify - fi + fi + nmcli con mod "$WG_CONF" connection.autoconnect no nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//' &> ${WG_WDIR}onstart.txt fi ;;