wire_g bei RET abfragen hinzugefügt

This commit is contained in:
Désiré Werner Menrath 2023-11-18 08:56:16 +01:00
parent 441a5086dc
commit 808247414e

10
wire_g
View File

@ -211,8 +211,7 @@ connect(){
############################################################################################################ ############################################################################################################
############################################################################################################ # --text "<b>Aktiver TUNNEL:</b> <span color='#0fad0a'><b>$ACTIVE</b></span> # mit <b>gewünschtes wort</b> wird fett geschrieben. ############################################################################################################ # --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 " ") # Farbe für Variable $ACTIVE festgelegt mit fetter Schrift. (bei --text zwischen " ")
while true
do
SELECTION=$(yad --no-klick --list --center \ SELECTION=$(yad --no-klick --list --center \
--height=300 --width=60 --title="Wire-G" \ --height=300 --width=60 --title="Wire-G" \
--buttons-layout=center \ --buttons-layout=center \
@ -227,7 +226,6 @@ SELECTION=$(yad --no-klick --list --center \
<b>-----------------------------------------------------------------------------------------------------</b> <b>-----------------------------------------------------------------------------------------------------</b>
<b>If no Tunnels are listed,</b> <b>If no Tunnels are listed,</b>
<b>so they have to import their Tunnel beforehand.</b>") <b>so they have to import their Tunnel beforehand.</b>")
done
RET=$? RET=$?
[[ $? -eq 1 ]] && exit 0 [[ $? -eq 1 ]] && exit 0
@ -235,21 +233,25 @@ RET=$?
if [[ $RET -eq 2 ]] if [[ $RET -eq 2 ]]
then then
up_or_down up_or_down
wire_g
fi fi
if [[ $RET -eq 3 ]] if [[ $RET -eq 3 ]]
then then
import_wg import_wg
wire_g
fi fi
if [[ $RET -eq 4 ]] if [[ $RET -eq 4 ]]
then then
remove remove
wire_g
fi fi
if [[ $RET -eq 5 ]] if [[ $RET -eq 5 ]]
then then
about about
wire_g
fi fi
if [[ $RET -eq 0 ]] if [[ $RET -eq 0 ]]
@ -259,9 +261,11 @@ if [[ $RET -eq 0 ]]
wg_stop wg_stop
nmcli connection up $SELECTION &> ${WG_WDIR}.tmp.txt nmcli connection up $SELECTION &> ${WG_WDIR}.tmp.txt
connect connect
wire_g
else else
nmcli connection up $SELECTION &> ${WG_WDIR}.tmp.txt nmcli connection up $SELECTION &> ${WG_WDIR}.tmp.txt
connect connect
wire_g
fi fi
fi fi
############################################ END ########################################################## ############################################ END ##########################################################