test mit kill pid

This commit is contained in:
Désiré Werner Menrath 2023-11-08 20:23:22 +01:00
parent 1275ee3459
commit 5b7279fda7

9
wire_g
View File

@ -105,14 +105,15 @@ import_wg(){
fi ;; fi ;;
*) yad --text-align=center --button=$"OK" --title=$"Wireguard .conf Select file" \ *) 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 \ --image-on-top --window-icon=${wg_pic}wg-stop.png --image=${wg_pic}wg-info.png \
--fixed --center --buttons-layout=center --borders=8 \ --fixed --center --buttons-layout=center --borders=8 \
--text $"<b>Oh, something went wrong.</b> \n --text $"<b>Oh, something went wrong.</b> \n
<b>No valid Wireguard file.</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" <b>Here is an example:</b><span color='#0fad0a'><b> my_wireguard.conf</b></span> \n"
import_wg ;; import_wg ;;
esac esac
else else
kill -0 $PID &> /dev/null
wire_g wire_g
fi 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>At all tunnels, the auto start is disabled.</b></span> \n
<span color='#626ff1'><b>Version: $version </b></span> \n <span color='#626ff1'><b>Version: $version </b></span> \n
<span color='#626ff1'><b>Use without warranty.</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 export -f more