wait in RET hinzugefügt2

This commit is contained in:
Désiré Werner Menrath 2023-11-18 09:44:53 +01:00
parent 090445ff04
commit 7989fda162

4
wire_g
View File

@ -233,12 +233,14 @@ RET=$?
if [[ $RET -eq 2 ]] if [[ $RET -eq 2 ]]
then then
up_or_down up_or_down
wait
wire_g wire_g
fi fi
if [[ $RET -eq 3 ]] if [[ $RET -eq 3 ]]
then then
import_wg import_wg
wait
wire_g wire_g
fi fi
@ -262,10 +264,12 @@ if [[ $RET -eq 0 ]]
wg_stop wg_stop
nmcli connection up $SELECTION &> ${WG_WDIR}.tmp.txt nmcli connection up $SELECTION &> ${WG_WDIR}.tmp.txt
connect connect
wait
wire_g wire_g
else else
nmcli connection up $SELECTION &> ${WG_WDIR}.tmp.txt nmcli connection up $SELECTION &> ${WG_WDIR}.tmp.txt
connect connect
wait
wire_g wire_g
fi fi
fi fi