diff --git a/wg_stop b/wg_stop index 46ac7a3..6c18505 100755 --- a/wg_stop +++ b/wg_stop @@ -31,14 +31,12 @@ export textdomaindir="/usr/share/locale" do # 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\|deactivated' ${wg_wdir}.stop.txt) then - notify-send --icon=${wg_pic}wg-stop.png $"$wert Connection disconnected" - pkill yad - + notify-send --icon=${wg_pic}wg-stop.png $"$wert Connection disconnected" fi done - +pkill yad ################################# END ################################################################## ############################################################################################################