From 40477c21624acf2299fc629e096f25b13fe2f8c6 Mon Sep 17 00:00:00 2001 From: punix Date: Sat, 18 Nov 2023 16:14:00 +0100 Subject: [PATCH] notify for autoconnect a restart pc --- wire_g | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/wire_g b/wire_g index 9a72dce..67ed616 100755 --- a/wire_g +++ b/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 \