fix import for restart

This commit is contained in:
Désiré Werner Menrath 2023-11-22 18:23:38 +01:00
parent 16652ac21e
commit 1c342cdaf8

1
wire_g
View File

@ -108,6 +108,7 @@ import_wg(){
nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt
wg_notify wg_notify
fi fi
nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//' &> ${WG_WDIR}onstart.txt
fi ;; fi ;;
*) yad --image-on-top --image=${WG_PIC}wg-info.png --height=150 --width=240 \ *) yad --image-on-top --image=${WG_PIC}wg-info.png --height=150 --width=240 \