Created
October 14, 2016 09:17
-
-
Save bulton-fr/23b0d2cbd1d4bb43c56ece03e13ba4c7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
set -e | |
juniper_connected() { | |
echo "Connected action - Add google dns to resolv.conf" | |
echo "nameserver 8.8.8.8" >> /etc/resolv.conf | |
echo "nameserver 8.8.4.4" >> /etc/resolv.conf | |
} | |
case "$1" in | |
connected) | |
juniper_connected | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment