test mit kill pid
This commit is contained in:
parent
1275ee3459
commit
5b7279fda7
9
wire_g
9
wire_g
@ -105,14 +105,15 @@ import_wg(){
|
||||
fi ;;
|
||||
|
||||
*) yad --text-align=center --button=$"OK" --title=$"Wireguard .conf Select file" \
|
||||
--image-on-top --window-icon=${wg_pic}wg-stop.png --image=${wg_pic}wg-info.png \
|
||||
--fixed --center --buttons-layout=center --borders=8 \
|
||||
--text $"<b>Oh, something went wrong.</b> \n
|
||||
--image-on-top --window-icon=${wg_pic}wg-stop.png --image=${wg_pic}wg-info.png \
|
||||
--fixed --center --buttons-layout=center --borders=8 \
|
||||
--text $"<b>Oh, something went wrong.</b> \n
|
||||
<b>No valid Wireguard file.</b> \n
|
||||
<b>Here is an example:</b><span color='#0fad0a'><b> my_wireguard.conf</b></span> \n"
|
||||
import_wg ;;
|
||||
esac
|
||||
else
|
||||
kill -0 $PID &> /dev/null
|
||||
wire_g
|
||||
fi
|
||||
|
||||
@ -212,7 +213,7 @@ more(){
|
||||
<span color='#626ff1'><b>At all tunnels, the auto start is disabled.</b></span> \n
|
||||
<span color='#626ff1'><b>Version: $version </b></span> \n
|
||||
<span color='#626ff1'><b>Use without warranty.</b></span> \n
|
||||
<a href='https://git.lunix.dedyn.io/punix/Wire-G'>Download Wire-G </a> \n")
|
||||
<a href='https://git.lunix.dedyn.io/punix/Wire-G'>Download Wire-G </a> \n" & PID=$!)
|
||||
|
||||
}
|
||||
export -f more
|
||||
|
Loading…
x
Reference in New Issue
Block a user