wire_g else korrigiert wg_stop unter else gesetzt
This commit is contained in:
parent
233db20d49
commit
5bebb7ccaf
2
wire_g
2
wire_g
@ -176,10 +176,10 @@ selection=$(yad --no-click --list \
|
|||||||
active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
||||||
if [ -n $active ]
|
if [ -n $active ]
|
||||||
then
|
then
|
||||||
wg_stop
|
|
||||||
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
||||||
connect
|
connect
|
||||||
else
|
else
|
||||||
|
wg_stop
|
||||||
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
||||||
connect
|
connect
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user