mv fix
This commit is contained in:
parent
d5938ae9d0
commit
6fe7e7c989
@ -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
4
wire_g
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user