Skip to content

Instantly share code, notes, and snippets.

@bulton-fr
Created October 14, 2016 09:17
Show Gist options
  • Save bulton-fr/23b0d2cbd1d4bb43c56ece03e13ba4c7 to your computer and use it in GitHub Desktop.
Save bulton-fr/23b0d2cbd1d4bb43c56ece03e13ba4c7 to your computer and use it in GitHub Desktop.
#!/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