fix autoconnect no
This commit is contained in:
parent
0af5947234
commit
87bdc70838
5
wire_g
5
wire_g
@ -104,9 +104,10 @@ import_wg(){
|
||||
kill $lines
|
||||
nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt
|
||||
wg_notify
|
||||
fi
|
||||
nmcli con mod "$WG_CONF" connection.autoconnect no
|
||||
fi
|
||||
nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//' &> ${WG_WDIR}onstart.txt
|
||||
IFS=$'\n' WG_START=( $(cat ${WG_WDIR}onstart.txt) )
|
||||
nmcli con mod "$WG_START" connection.autoconnect no
|
||||
fi ;;
|
||||
|
||||
*) yad --image-on-top --image=${WG_PIC}wg-info.png --height=150 --width=240 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user