Skip to content

Instantly share code, notes, and snippets.

View lindeskar's full-sized avatar

Alexander Lindeskär lindeskar

View GitHub Profile
@lindeskar
lindeskar / openVPNreconnect
Last active January 21, 2017 10:40 — forked from aelveborn/vpn-status.sh
My edits of the Synology VPN reconnection script by aelveborn.
#!/bin/sh
# Replace o1234567890 with your VPN id. To get your id, start the VPN and run: sudo ps aux | grep client_o
# Replace home with the name of your VPN profile in DSM admin panel.
vpnId="o1234567890"
vpnName="home"
vpnProtocol="openvpn"
# You should not need to change the following variables
vpncFile="/usr/syno/etc/synovpnclient/vpnc_connecting"