mirror of
https://github.com/Qubes-Community/Contents.git
synced 2024-12-23 06:09:29 -05:00
Auto restart VPN if disconnected
I have done this change on my setup to fix the random disconnection I am facing. If the VPN go down, wait and reconnect to the vpn * add 5 second delay * call /rw/config/rc.local script
This commit is contained in:
parent
5971998494
commit
20c6e78faf
@ -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
|
||||||
~~~
|
~~~
|
||||||
|
Loading…
Reference in New Issue
Block a user