From b23149cf15f809611c984be18af216b8f4d03f3e Mon Sep 17 00:00:00 2001 From: punix Date: Wed, 1 Nov 2023 12:14:42 +0100 Subject: [PATCH] revert e45923d5440ffa3f91240d406d2e35f3a5e85f9b revert weitere korrekturen --- wg_stop | 2 +- wire_g | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wg_stop b/wg_stop index 2376151..507318e 100755 --- a/wg_stop +++ b/wg_stop @@ -15,7 +15,7 @@ # rm /home/$a_user/.config/wg_nmcli/.tunnel.txt # falls Wireguard nicht richtig funktioniert hier die # wegnehmen # hier wird die Ausgabe von nmcli für die auswertung in die .stop.txt gespeichert nmcli connection down "$wert" &> "${wg_wdir}.stop.txt" - if disable=$(grep -i 'deaktiviert\|disabled' "${wg_wdir}.stop.txt") + if disable=$(grep -i '"deaktiviert"\|"disabled"' "${wg_wdir}.stop.txt") then notify-send --icon="${wg_pic}wg-stop.png" "$wert Connection disconnected." pkill yad diff --git a/wire_g b/wire_g index 5a84949..416e298 100755 --- a/wire_g +++ b/wire_g @@ -99,7 +99,7 @@ remove(){ if [ "$?" = "0" ] then nmcli connection delete "$selection" &> "${wg_wdir}.tmp.txt" - success=$(grep -i 'erfolgreich gelöscht\|successfully deleted' "${wg_wdir}.tmp.txt") + success=$(grep -i '"erfolgreich gelöscht"\|"successfully deleted"' "${wg_wdir}.tmp.txt") if [ "$?" = "0" ] then yad --window-icon="${wg_pic}wg-trash.png" \ @@ -172,7 +172,7 @@ export -f more connect(){ - success=$(grep -i 'erfolgreich aktiviert\|successfully activated' "${wg_wdir}.tmp.txt") + success=$(grep -i '"erfolgreich aktiviert"\|"successfully activated"' "${wg_wdir}.tmp.txt") if [ "$?" = "0" ] then nmcli con mod "$selection" connection.autoconnect no