active variable bei up_or_down hinzugefügt
This commit is contained in:
parent
e0c10f2b38
commit
a1048076b5
5
wire_g
5
wire_g
@ -127,7 +127,7 @@ export -f remove
|
||||
############################################################################################################
|
||||
#funktion for active tunnel a stop
|
||||
up_or_down(){
|
||||
|
||||
active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
||||
if [ -z $active ]
|
||||
then
|
||||
yad --image-on-top --image=${wg_pic}wg-info.png \
|
||||
@ -137,8 +137,7 @@ if [ -z $active ]
|
||||
else
|
||||
wg_stop
|
||||
|
||||
fi
|
||||
}
|
||||
fi }
|
||||
export -f up_or_down
|
||||
|
||||
# funktion end
|
||||
|
Loading…
x
Reference in New Issue
Block a user