installar and uninstaller angepasst
This commit is contained in:
24
wire_g
24
wire_g
@ -19,7 +19,7 @@ export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
############################################################################################################
|
||||
############################################################################################################
|
||||
VERSION=3.1.5
|
||||
VERSION=3.1.7
|
||||
# wg_workdir Arbeitsverzeichnis wg
|
||||
WG_WDIR="/home/$USER/.config/wg_nmcli/"
|
||||
# Pfad wg Icons
|
||||
@ -55,11 +55,23 @@ wg_notify(){
|
||||
IFS=$'\n' lines=( $(cat ${WG_WDIR}tunnel.txt) )
|
||||
nmcli con mod "$lines" connection.autoconnect no
|
||||
|
||||
if grep 'TRUE TRUE\|TRUE FALSE' ${WG_WDIR}about.txt
|
||||
then
|
||||
chmod +x /home/"$USER"/.local/bin/wg_on_start
|
||||
else
|
||||
chmod -x /home/"$USER"/.local/bin/wg_on_start
|
||||
if [ -d /home/$USER/.config/autostart ] # for GNOME, XFCE, KDE, Budgie
|
||||
then
|
||||
if grep 'TRUE TRUE\|TRUE FALSE' ${WG_WDIR}about.txt
|
||||
then
|
||||
mv /home/"$USER"/.config/autostart/.wgonstart.desktop mv /home/"$USER"/.config/autostart/wgonstart.desktop
|
||||
else
|
||||
mv /home/"$USER"/.config/autostart/.wgonstart.desktop mv /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
|
||||
else
|
||||
mv /home/$USER/.config/lxsession/Lubuntu/autostart/wgonstart.desktop /home/$USER/.config/lxsession/Lubuntu/autostart/.wgonstart.desktop
|
||||
fi
|
||||
fi
|
||||
|
||||
yad --notification \
|
||||
|
Reference in New Issue
Block a user