translate Dateien umbenannt, verschoben & code fix
This commit is contained in:
parent
a57da6926e
commit
8f98cf9c55
@ -12,9 +12,9 @@
|
|||||||
|
|
||||||
a_user=$(whoami)
|
a_user=$(whoami)
|
||||||
cd || exit
|
cd || exit
|
||||||
rm -f /home/$a_user/.icons/wireguard-active.png wireguard-stop.png wireguard-vpn.png wg-import.png wg-trash.png wg-info.png
|
rm -f /home/"$a_user"/.icons/wireguard-active.png wireguard-stop.png wireguard-vpn.png wg-import.png wg-trash.png wg-info.png
|
||||||
wait;
|
wait;
|
||||||
rm -r /home/$a_user/.config/wg_nmcli
|
rm -r /home/"$a_user"/.config/wg_nmcli
|
||||||
wait;
|
wait;
|
||||||
sudo rm /usr/share/icons/Arch-Symbole/wireguard-vpn.png
|
sudo rm /usr/share/icons/Arch-Symbole/wireguard-vpn.png
|
||||||
wait;
|
wait;
|
||||||
|
2
wg_stop
2
wg_stop
@ -30,7 +30,7 @@ export textdomaindir="/usr/share/locale"
|
|||||||
for wert in "${lines[@]}"
|
for wert in "${lines[@]}"
|
||||||
do
|
do
|
||||||
# hier wird die Ausgabe von nmcli für die auswertung in die .stop.txt gespeichert
|
# hier wird die Ausgabe von nmcli für die auswertung in die .stop.txt gespeichert
|
||||||
nmcli connection down $wert &> ${wg_wdir}.stop.txt
|
nmcli connection down "$wert" &> ${wg_wdir}.stop.txt
|
||||||
if disable=$(grep -i 'deaktiviert\|deactivated' ${wg_wdir}.stop.txt)
|
if disable=$(grep -i 'deaktiviert\|deactivated' ${wg_wdir}.stop.txt)
|
||||||
then
|
then
|
||||||
notify-send --icon=${wg_pic}wg-stop.png $"$wert Connection disconnected"
|
notify-send --icon=${wg_pic}wg-stop.png $"$wert Connection disconnected"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user