wg_on_start last active Tunnel read on onstart.txt

This commit is contained in:
2023-11-19 18:08:47 +01:00
parent 9795a8c875
commit 7192047057
2 changed files with 10 additions and 2 deletions

4
wire_g
View File

@@ -37,7 +37,9 @@ ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/
############################################################################################################
wg_notify(){
ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//') &> ${WG_WDIR}onstart.txt
nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//' &> ${WG_WDIR}onstart.txt
ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
case $LANG in
de_DE.UTF-8) OPEN=öffnen ;;