import test
This commit is contained in:
parent
93bd95d039
commit
35bccd9744
3
wire_g
3
wire_g
@ -94,7 +94,8 @@ import_wg(){
|
|||||||
nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt
|
nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt
|
||||||
wg_notify
|
wg_notify
|
||||||
else
|
else
|
||||||
pkill yad
|
IFS=$'\n' lines=( $(awk '{print $2}' ${WG_WDIR}Notify_PID.txt) ) # Dies zeigt auf die richtige pid
|
||||||
|
kill $lines
|
||||||
nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt
|
nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt
|
||||||
wg_notify
|
wg_notify
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user