How to write Script

You will have to do this:

nano /usr/bin/vpn_reconnect

Paste the script and then do cntrl + o, cntrl + x
Then:

chmod +x /usr/bin/vpn_reconnect

Then open the rc.local file:

nano /etc/rc.local

Add this to the end of the file just before exit:

/usr/bin/vpn_reconnect &

Do cntrl + o, cntrl + x to save and quit again.

The script should run on boot now :slight_smile:

1 Like