From 808247414e63e7a6bb867ac5252125ea1f20db2d Mon Sep 17 00:00:00 2001 From: punix Date: Sat, 18 Nov 2023 08:56:16 +0100 Subject: [PATCH] =?UTF-8?q?wire=5Fg=20bei=20RET=20abfragen=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wire_g | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/wire_g b/wire_g index 1cd7b70..a4615d3 100755 --- a/wire_g +++ b/wire_g @@ -211,8 +211,7 @@ connect(){ ############################################################################################################ ############################################################################################################ # --text "Aktiver TUNNEL: $ACTIVE # mit gewünschtes wort wird fett geschrieben. # Farbe für Variable $ACTIVE festgelegt mit fetter Schrift. (bei --text zwischen " ") -while true -do + SELECTION=$(yad --no-klick --list --center \ --height=300 --width=60 --title="Wire-G" \ --buttons-layout=center \ @@ -227,7 +226,6 @@ SELECTION=$(yad --no-klick --list --center \ ----------------------------------------------------------------------------------------------------- If no Tunnels are listed, so they have to import their Tunnel beforehand.") -done RET=$? [[ $? -eq 1 ]] && exit 0 @@ -235,21 +233,25 @@ RET=$? if [[ $RET -eq 2 ]] then up_or_down + wire_g fi if [[ $RET -eq 3 ]] then import_wg + wire_g fi if [[ $RET -eq 4 ]] then remove + wire_g fi if [[ $RET -eq 5 ]] then about + wire_g fi if [[ $RET -eq 0 ]] @@ -258,10 +260,12 @@ if [[ $RET -eq 0 ]] then wg_stop nmcli connection up $SELECTION &> ${WG_WDIR}.tmp.txt - connect + connect + wire_g else nmcli connection up $SELECTION &> ${WG_WDIR}.tmp.txt connect + wire_g fi fi ############################################ END ##########################################################