test 8
This commit is contained in:
parent
36378cf665
commit
18537ff916
10
wire_g
10
wire_g
@ -89,11 +89,11 @@ import_wg(){
|
|||||||
then
|
then
|
||||||
wg_stop
|
wg_stop
|
||||||
nmcli connection import type wireguard file $wgconf &> ${wg_wdir}.tmp.txt
|
nmcli connection import type wireguard file $wgconf &> ${wg_wdir}.tmp.txt
|
||||||
wg_notify && wire_g
|
wg_notify ; wait ; wire_g
|
||||||
else
|
else
|
||||||
pkill yad
|
pkill yad
|
||||||
nmcli connection import type wireguard file $wgconf &> ${wg_wdir}.tmp.txt
|
nmcli connection import type wireguard file $wgconf &> ${wg_wdir}.tmp.txt
|
||||||
wg_notify && wire_g
|
wg_notify ; wait ; wire_g
|
||||||
fi
|
fi
|
||||||
fi ;;
|
fi ;;
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ remove(){
|
|||||||
--text=$"Your tunnel $selection was successfully deleted." \
|
--text=$"Your tunnel $selection was successfully deleted." \
|
||||||
--text-align=center --button=$"OK" --title "Wire-G Trash" \
|
--text-align=center --button=$"OK" --title "Wire-G Trash" \
|
||||||
--center --buttons-layout=center --borders=8
|
--center --buttons-layout=center --borders=8
|
||||||
|
wait ; wire_g
|
||||||
else
|
else
|
||||||
yad --window-icon=${wg_pic}wg-trash.png \
|
yad --window-icon=${wg_pic}wg-trash.png \
|
||||||
--image-on-top --image=${wg_pic}wg-info.png \
|
--image-on-top --image=${wg_pic}wg-info.png \
|
||||||
@ -198,7 +198,7 @@ connect(){
|
|||||||
then
|
then
|
||||||
pkill yad
|
pkill yad
|
||||||
nmcli con mod $selection connection.autoconnect no
|
nmcli con mod $selection connection.autoconnect no
|
||||||
wg_notify && wire_g
|
wg_notify ; wait ; wire_g
|
||||||
|
|
||||||
fi }
|
fi }
|
||||||
|
|
||||||
@ -236,7 +236,7 @@ if [[ $ret -eq 0 ]]
|
|||||||
then
|
then
|
||||||
wg_stop
|
wg_stop
|
||||||
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
||||||
connect
|
connect
|
||||||
else
|
else
|
||||||
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
nmcli connection up $selection &> ${wg_wdir}.tmp.txt
|
||||||
connect
|
connect
|
||||||
|
Loading…
x
Reference in New Issue
Block a user