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/ .*//')
|
||||
if [ -n $active ]
|
||||
then
|
||||
wg_stop
|
||||
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
||||
connect
|
||||
else
|
||||
wg_stop
|
||||
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
||||
connect
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user