onstart.txt hinzugefügt
This commit is contained in:
@ -25,7 +25,7 @@ WG_WDIR="/home/$USER/.config/wg_nmcli/"
|
||||
# Pfad wg Icons
|
||||
WG_PIC="/home/$USER/.icons/"
|
||||
|
||||
ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
||||
ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//') &> ${WG_WDIR}onstart.txt
|
||||
case $LANG in
|
||||
|
||||
de_DE.UTF-8) OPEN=öffnen ;;
|
||||
@ -40,7 +40,7 @@ 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 grep 'TRUE TRUE\|TRUE FALSE' ${WG_WDIR}about.txt
|
||||
then
|
||||
chmod +x /home/"$USER"/.local/bin/wg_on_start
|
||||
|
Reference in New Issue
Block a user