From 9795a8c875fa7cfe246362e4dc7e234824f1a273 Mon Sep 17 00:00:00 2001 From: punix Date: Sun, 19 Nov 2023 16:04:54 +0100 Subject: [PATCH] =?UTF-8?q?onstart.txt=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wg_on_start | 4 ++-- wire_g | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wg_on_start b/wg_on_start index 1ad7a73..92d14d8 100644 --- a/wg_on_start +++ b/wg_on_start @@ -25,7 +25,7 @@ WG_WDIR="/home/$USER/.config/wg_nmcli/" # Pfad wg Icons WG_PIC="/home/$USER/.icons/" - ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//') + ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//') &> ${WG_WDIR}onstart.txt case $LANG in de_DE.UTF-8) OPEN=öffnen ;; @@ -40,7 +40,7 @@ WG_PIC="/home/$USER/.icons/" # 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 grep 'TRUE TRUE\|TRUE FALSE' ${WG_WDIR}about.txt then chmod +x /home/"$USER"/.local/bin/wg_on_start diff --git a/wire_g b/wire_g index 6afc8be..0d2d28b 100755 --- a/wire_g +++ b/wire_g @@ -37,7 +37,7 @@ ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ ############################################################################################################ wg_notify(){ - ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//') + ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//') &> ${WG_WDIR}onstart.txt case $LANG in de_DE.UTF-8) OPEN=öffnen ;;