Skip to content

Instantly share code, notes, and snippets.

@splashx
Created July 20, 2016 11:32
Show Gist options
  • Save splashx/ad2f3f9bc79e37d28c67ac3315ee31a6 to your computer and use it in GitHub Desktop.
Save splashx/ad2f3f9bc79e37d28c67ac3315ee31a6 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
VPN_GW=80.249.164.89
if [ "${5:-}" = "${VPN_GW}" ]
then
/sbin/route add 80.249.164.0/24 $4 &> /tmp/ip-up
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment