wg_nmcli Ordner hinzugefügt Pfade angepasst

This commit is contained in:
2023-11-20 12:28:28 +01:00
parent 6fe7e7c989
commit 92ae78f5a8
4 changed files with 26 additions and 17 deletions

View File

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