test remove

This commit is contained in:
Désiré Werner Menrath 2023-11-14 12:31:52 +01:00
parent 194ecee28f
commit 9a15e8e510

18
wire_g
View File

@ -156,7 +156,7 @@ remove(){
pkill yad pkill yad
fi fi
fi } fi }
export -f remove
# function end # function end
############################################################################################################ ############################################################################################################
@ -229,7 +229,7 @@ if selection=$(yad --no-klick --list --center \
--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" \
--button=$"Import":"bash -c import_wg" \ --button=$"Import":"bash -c import_wg" \
--button=$"Remove":"bash -c remove" --separator="" \ --button=$"Remove:4" --separator="" \
--button=$"About":"bash -c about" \ --button=$"About":"bash -c about" \
--window-icon=${wg_pic}wg-vpn.png \ --window-icon=${wg_pic}wg-vpn.png \
--borders=8 --image-on-top --image=${wg_pic}wg-active.png \ --borders=8 --image-on-top --image=${wg_pic}wg-active.png \
@ -250,6 +250,20 @@ if selection=$(yad --no-klick --list --center \
connect connect
fi fi
fi fi
ret=$?
[[ $? -eq 1 ]] && exit 0
if [[ $ret -eq 4 ]]
then
remove
fi
if [[ $ret -eq 5 ]]
then
about
fi
############################################ END ########################################################## ############################################ END ##########################################################