notify for autoconnect a restart pc
This commit is contained in:
parent
8ef8c30690
commit
40477c2162
13
wire_g
13
wire_g
@ -52,10 +52,15 @@ wg_notify(){
|
||||
# autoconnect wird hier abgeschalten damit auch neu importierte nach einem Systemneustart nicht aktiv sind
|
||||
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
|
||||
# if AUTOSTART=$(grep 'TRUE TRUE\|TRUE FALSE' ${WG_WDIR}about.txt)
|
||||
# then
|
||||
# nmcli con mod "$ACTIVE" connection.autoconnect yes
|
||||
# if [ -d /etc/xdg/autostart ]
|
||||
# then
|
||||
# echo "Autostartordner in /etc/xdg/ gefunden"
|
||||
# elif [ -d /usr/share/autostart ]
|
||||
# then
|
||||
# fi
|
||||
yad --notification \
|
||||
--image="${WG_PIC}wg-vpn.png" \
|
||||
--icon-size=32 --no-middle \
|
||||
|
Loading…
x
Reference in New Issue
Block a user