Merge pull request #136 from kakooloukia/patch-1

Auto reconnect VPN if disconnected
This commit is contained in:
awokd 2021-06-05 18:30:54 +00:00 committed by GitHub
commit e64695800b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,6 +207,10 @@ Before proceeding, you will need to download a copy of your VPN provider's confi
;; ;;
down) down)
su - -c 'notify-send "$(hostname): LINK IS DOWN !" --icon=dialog-error' user su - -c 'notify-send "$(hostname): LINK IS DOWN !" --icon=dialog-error' user
# Restart the VPN automatically
sleep 5s
sudo /rw/config/rc.local
;; ;;
esac esac
~~~ ~~~