test 5 mit remove
This commit is contained in:
parent
0802fbc2fa
commit
0f339b48f5
21
wire_g
21
wire_g
@ -221,7 +221,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 " ")
|
||||||
|
|
||||||
if 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 \
|
||||||
--button=$"Start:0" --button=$"Stop":"bash -c up_or_down" \
|
--button=$"Start:0" --button=$"Stop":"bash -c up_or_down" \
|
||||||
@ -235,7 +235,16 @@ if 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>")
|
||||||
|
ret=$?
|
||||||
|
|
||||||
|
[[ $? -eq 1 ]] && exit 0
|
||||||
|
|
||||||
|
if [[ $ret -eq 4 ]]
|
||||||
|
then
|
||||||
|
remove
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $ret -eq 0 ]]
|
||||||
then
|
then
|
||||||
if [[ -n $active ]]
|
if [[ -n $active ]]
|
||||||
then
|
then
|
||||||
@ -246,16 +255,6 @@ if selection=$(yad --no-klick --list --center \
|
|||||||
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
||||||
connect
|
connect
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ret=$?
|
|
||||||
|
|
||||||
[[ $? -eq 1 ]] && exit 0
|
|
||||||
|
|
||||||
if [[ $ret -eq 4 ]]
|
|
||||||
then
|
|
||||||
remove
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user