fix autoconnect no

This commit is contained in:
Désiré Werner Menrath 2023-11-27 12:44:08 +01:00
parent 0af5947234
commit 87bdc70838

5
wire_g
View File

@ -104,9 +104,10 @@ import_wg(){
kill $lines
nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt
wg_notify
fi
nmcli con mod "$WG_CONF" connection.autoconnect no
fi
nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//' &> ${WG_WDIR}onstart.txt
IFS=$'\n' WG_START=( $(cat ${WG_WDIR}onstart.txt) )
nmcli con mod "$WG_START" connection.autoconnect no
fi ;;
*) yad --image-on-top --image=${WG_PIC}wg-info.png --height=150 --width=240 \