This commit is contained in:
Désiré Werner Menrath 2023-11-19 21:23:57 +01:00
parent d5938ae9d0
commit 6fe7e7c989
2 changed files with 4 additions and 4 deletions

View File

@ -49,9 +49,9 @@ ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/
then then
if grep 'TRUE TRUE\|TRUE FALSE' ${WG_WDIR}about.txt if grep 'TRUE TRUE\|TRUE FALSE' ${WG_WDIR}about.txt
then then
mv /home/"$USER"/.config/autostart/.wgonstart.desktop mv /home/"$USER"/.config/autostart/wgonstart.desktop mv /home/"$USER"/.config/autostart/.wgonstart.desktop /home/"$USER"/.config/autostart/wgonstart.desktop
else else
mv /home/"$USER"/.config/autostart/wgonstart.desktop mv /home/"$USER"/.config/autostart/.wgonstart.desktop mv /home/"$USER"/.config/autostart/wgonstart.desktop /home/"$USER"/.config/autostart/.wgonstart.desktop
fi fi
elif [ -d /home/$USER/.config/lxsession/Lubuntu/autostart ] # for LXDE elif [ -d /home/$USER/.config/lxsession/Lubuntu/autostart ] # for LXDE

4
wire_g
View File

@ -59,9 +59,9 @@ wg_notify(){
then then
if grep 'TRUE TRUE\|TRUE FALSE' ${WG_WDIR}about.txt if grep 'TRUE TRUE\|TRUE FALSE' ${WG_WDIR}about.txt
then then
mv /home/"$USER"/.config/autostart/.wgonstart.desktop mv /home/"$USER"/.config/autostart/wgonstart.desktop mv /home/"$USER"/.config/autostart/.wgonstart.desktop /home/"$USER"/.config/autostart/wgonstart.desktop
else else
mv /home/"$USER"/.config/autostart/.wgonstart.desktop mv /home/"$USER"/.config/autostart/.wgonstart.desktop mv /home/"$USER"/.config/autostart/.wgonstart.desktop /home/"$USER"/.config/autostart/.wgonstart.desktop
fi fi
elif [ -d /home/$USER/.config/lxsession/Lubuntu/autostart ] # for LXDE elif [ -d /home/$USER/.config/lxsession/Lubuntu/autostart ] # for LXDE