Created
March 12, 2014 13:29
-
-
Save bwesterb/9506941 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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