weitere korrekturen
This commit is contained in:
2
wg_stop
2
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
|
||||
|
Reference in New Issue
Block a user