selection if abfrage angepasst (else hinzugefügt)
This commit is contained in:
parent
35373f4e4e
commit
5dbd782306
6
wire_g
6
wire_g
@ -173,9 +173,15 @@ selection=$(yad --no-click --list \
|
||||
--column 'Auswahl' $tunnel)
|
||||
if [ "$?" = "0" ]
|
||||
then
|
||||
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
|
||||
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
||||
connect
|
||||
fi
|
||||
|
||||
############################################ ENDE #########################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user