wait in RET hinzugefügt2
This commit is contained in:
parent
090445ff04
commit
7989fda162
4
wire_g
4
wire_g
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user