diff --git a/tunnel.txt b/tunnel.txt deleted file mode 100644 index 22e1c49..0000000 --- a/tunnel.txt +++ /dev/null @@ -1,3 +0,0 @@ -peer_asus -peer_hjkvpn -wg_config diff --git a/wire_g b/wire_g index 563bb42..2495e22 100755 --- a/wire_g +++ b/wire_g @@ -217,7 +217,16 @@ connect(){ ############################################################################################################ ############################################################################################################ # --text "Aktiver TUNNEL: $ACTIVE # mit gewünschtes wort 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 \