add sleep 2 to wg_notify

This commit is contained in:
Désiré Werner Menrath 2023-11-22 18:19:54 +01:00
parent c6ad55ab8a
commit 16652ac21e

2
wire_g
View File

@ -37,7 +37,7 @@ ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/
############################################################################################################
wg_notify(){
sleep 2
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