wg_nmcli Ordner hinzugefügt Pfade angepasst
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user