Skip to content

Instantly share code, notes, and snippets.

@greenqy
greenqy / vpn-dorm.sh
Last active September 3, 2015 15:08 — forked from Hexcles/vpn-dorm.sh
ZJU Zijingang Campus dormitory VPN dial up script (xl2tpd + systemd, for Archlinux)
#!/bin/bash
PPP_TIMEOUT=30
L2TPD_TIMEOUT=5
L2TPD_CONTROL_FILE=/var/run/xl2tpd/l2tp-control
VPN_ACCOUNT=zjuvpn
function start_xl2tpd
{
systemctl start xl2tpd