Notify Teil 1 prüfung autoconnect True or False
This commit is contained in:
parent
4e89053a79
commit
210bce9909
8
wire_g
8
wire_g
@ -51,8 +51,12 @@ wg_notify(){
|
||||
--timeout 1 \
|
||||
--text=$"<span color='#0fad0a'><b>"$ACTIVE"</b></span> <span><b>powered</b></span>"
|
||||
# autoconnect wird hier abgeschalten damit auch neu importierte nach einem Systemneustart nicht aktiv sind
|
||||
nmcli con mod "$ACTIVE" connection.autoconnect no
|
||||
|
||||
IFS=$'\n' lines=( $(cat ${WG_WDIR}tunnel.txt) )
|
||||
nmcli con mod "$lines" connection.autoconnect no
|
||||
if AUTOSTART=$(grep 'TRUE TRUE\|TRUE FALSE' ${WG_WDIR}about.txt)
|
||||
then
|
||||
nmcli con mod "$ACTIVE" connection.autoconnect yes
|
||||
fi
|
||||
yad --notification \
|
||||
--image="${WG_PIC}wg-vpn.png" \
|
||||
--icon-size=32 --no-middle \
|
||||
|
Loading…
Reference in New Issue
Block a user