test of exist about.txt and wg_nmcli

This commit is contained in:
Désiré Werner Menrath 2023-11-18 15:34:52 +01:00
parent 58375ab00d
commit 1c9aee7204
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +0,0 @@
peer_asus
peer_hjkvpn
wg_config

11
wire_g
View File

@ -217,7 +217,16 @@ connect(){
############################################################################################################
############################################################################################################ # --text "<b>Aktiver TUNNEL:</b> <span color='#0fad0a'><b>$ACTIVE</b></span> # mit <b>gewünschtes wort</b> wird fett geschrieben.
# Farbe für Variable $ACTIVE festgelegt mit fetter Schrift. (bei --text zwischen " ")
if [[ ! -d ${WG_WDIR} || ! -e ${WG_WDIR}about.txt ]]
then
mkdir -p /home/"$USER"/.config/wg_nmcli
echo FALSE TRUE > ${WG_WDIR}about.txt
fi
#Here is update of Wire-G for future
#if AUTOUPDATE=$(grep 'TRUE TRUE\|FALSE TRUE' ${WG_WDIR}about.txt)
# then
# here comms command to update Wire-G
#fi
SELECTION=$(yad --no-klick --list --center \
--height=300 --width=60 --title="Wire-G" \
--buttons-layout=center \