installer erweitert
This commit is contained in:
parent
531e5346e9
commit
e97e8599b9
@ -14,7 +14,10 @@
|
||||
############################################################################################################
|
||||
|
||||
# abfrage ob benötigte pakete installiert sind, wenn nicht dann installiere automatisch die benötigten Pakete.
|
||||
|
||||
if [ -d /home/"$USER"/.local/bin ]
|
||||
then
|
||||
mkdir -p /home/"$USER"/.local/bin
|
||||
fi
|
||||
if grep -i 'mint\|debian\|ubuntu\|pop|' /etc/os-release > /dev/null 2>&1
|
||||
then
|
||||
echo Wire-G wird installiert...
|
||||
@ -64,6 +67,20 @@ else
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -d /home/$USER/.config/autostart ] # for GNOME, XFCE, KDE, Budgie
|
||||
then
|
||||
cp wg_on_start.desktop /home/$USER/.config/autostart/
|
||||
chmod +x /home/$USER/.config/autostart/wg_on_start.desktop
|
||||
|
||||
elif [ -d /home/$USER/.config/lxsession/Lubuntu/autostart ] # for LXDE
|
||||
then
|
||||
cp wg_on_start.desktop /home/$USER/.config/lxsession/Lubuntu/autostart/
|
||||
chmod +x /home/$USER/.config/lxsession/Lubuntu/autostart/wg_on_start.desktop
|
||||
|
||||
else
|
||||
echo Autostartdir not found!
|
||||
fi
|
||||
|
||||
wait;
|
||||
sudo mkdir -p /usr/share/icons/Arch-Symbole ; sudo cp icons/wg-vpn.png /usr/share/icons/Arch-Symbole/
|
||||
wait;
|
||||
|
0
wg_on_start
Executable file → Normal file
0
wg_on_start
Executable file → Normal file
4
wg_on_start.desktop
Normal file → Executable file
4
wg_on_start.desktop
Normal file → Executable file
@ -1,4 +1,6 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=wg_on_start
|
||||
Exec=/home/"$USER"/.config/bin/wg_on_start
|
||||
Exec=/home/"$USER"/.local/bin/wg_on_start
|
||||
|
||||
Name[de_DE]=wg_on_start
|
||||
|
Loading…
x
Reference in New Issue
Block a user