remove wait
This commit is contained in:
parent
18537ff916
commit
f23c9e1caf
9
wire_g
9
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 ; wait ; wire_g
|
wg_notify
|
||||||
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 ; wait ; wire_g
|
wg_notify
|
||||||
fi
|
fi
|
||||||
fi ;;
|
fi ;;
|
||||||
|
|
||||||
@ -125,8 +125,7 @@ remove(){
|
|||||||
--image-on-top --image=${wg_pic}wg-info.png \
|
--image-on-top --image=${wg_pic}wg-info.png \
|
||||||
--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 +197,7 @@ connect(){
|
|||||||
then
|
then
|
||||||
pkill yad
|
pkill yad
|
||||||
nmcli con mod $selection connection.autoconnect no
|
nmcli con mod $selection connection.autoconnect no
|
||||||
wg_notify ; wait ; wire_g
|
wg_notify
|
||||||
|
|
||||||
fi }
|
fi }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user