Skip to content

Instantly share code, notes, and snippets.

@bwesterb
Created March 12, 2014 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bwesterb/9506941 to your computer and use it in GitHub Desktop.
Save bwesterb/9506941 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ "$IFACE" != eth0 ]; then
exit 0
fi
case "$MODE" in
start)
route add -host 144.76.73.47 dev eth0
route add -net default gw 144.76.73.47
;;
stop)
route del -host 144.76.73.47
route del -net default
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment