import double fix 8

This commit is contained in:
Désiré Werner Menrath 2023-11-17 21:35:13 +01:00
parent 7f0aa7c49a
commit 57d4cc0ac1
3 changed files with 6 additions and 2 deletions

2
.stop.txt Normal file
View File

@ -0,0 +1,2 @@
Fehler: »wg_config« ist keine aktive Verbindung.
Fehler: Keine aktive Verbindung angegeben.

4
tunnel.txt Normal file
View File

@ -0,0 +1,4 @@
peer_ipunix
peer_asus
peer_hjkvpn
wg_config

2
wire_g
View File

@ -102,12 +102,10 @@ import_wg(){
then then
wg_stop wg_stop
nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt
wait
wg_notify wg_notify
else else
kill $lines kill $lines
nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt
wait
wg_notify wg_notify
fi fi
fi ;; fi ;;