wire_g bei RET abfragen hinzugefügt
This commit is contained in:
parent
441a5086dc
commit
808247414e
12
wire_g
12
wire_g
@ -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.
|
||||
# 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 \
|
||||
<b>-----------------------------------------------------------------------------------------------------</b>
|
||||
<b>If no Tunnels are listed,</b>
|
||||
<b>so they have to import their Tunnel beforehand.</b>")
|
||||
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 ##########################################################
|
||||
|
Loading…
Reference in New Issue
Block a user