notify wg_on_start hinzugefügt
This commit is contained in:
16
wg_on_start
16
wg_on_start
@ -40,15 +40,13 @@ WG_PIC="/home/$USER/.icons/"
|
||||
# autoconnect wird hier abgeschalten damit auch neu importierte nach einem Systemneustart nicht aktiv sind
|
||||
IFS=$'\n' lines=( $(cat ${WG_WDIR}tunnel.txt) )
|
||||
nmcli con mod "$lines" connection.autoconnect no
|
||||
# if AUTOSTART=$(grep 'TRUE TRUE\|TRUE FALSE' ${WG_WDIR}about.txt)
|
||||
# then
|
||||
# nmcli con mod "$ACTIVE" connection.autoconnect yes
|
||||
# if [ -d /etc/xdg/autostart ]
|
||||
# then
|
||||
# echo "Autostartordner in /etc/xdg/ gefunden"
|
||||
# elif [ -d /usr/share/autostart ]
|
||||
# then
|
||||
# fi
|
||||
|
||||
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
|
||||
fi
|
||||
yad --notification \
|
||||
--image="${WG_PIC}wg-vpn.png" \
|
||||
--icon-size=32 --no-middle \
|
||||
|
Reference in New Issue
Block a user