fix autoconnect no
This commit is contained in:
parent
0af5947234
commit
87bdc70838
3
wire_g
3
wire_g
@ -105,8 +105,9 @@ 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
|
||||||
fi
|
fi
|
||||||
nmcli con mod "$WG_CONF" connection.autoconnect no
|
|
||||||
nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//' &> ${WG_WDIR}onstart.txt
|
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 ;;
|
fi ;;
|
||||||
|
|
||||||
*) yad --image-on-top --image=${WG_PIC}wg-info.png --height=150 --width=240 \
|
*) yad --image-on-top --image=${WG_PIC}wg-info.png --height=150 --width=240 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user