Created
April 5, 2016 15:49
-
-
Save ikks/539021812ea73c1f6d57fd05816883cf 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/bash | |
if ! grep 205 /etc/resolv.conf; then | |
sed -i '1s;^;nameserver 192.168.1.205\n;' /etc/resolv.conf | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment