]> git.madduck.net Git - code/vinst.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Allow nameserver to be specified
authormartin f. krafft <madduck@madduck.net>
Wed, 26 Feb 2014 13:01:39 +0000 (14:01 +0100)
committermartin f. krafft <madduck@madduck.net>
Wed, 26 Feb 2014 13:01:39 +0000 (14:01 +0100)
vinst

diff --git a/vinst b/vinst
index 66b70aa087442fa7e2ee48c5f112e964f77bcdb7..c6abe7299c743083329be4493c74f7bad0925a24 100755 (executable)
--- a/vinst
+++ b/vinst
@@ -35,6 +35,14 @@ while [ -n "$1" ]; do
       esac
       IPADDRESS="$1"
       ;;
+    (-d|--dns)
+      shift
+      if [ -z "$1" ]; then
+        echo >&2 'E: --dns/-d needs IP address'
+        exit 1
+      fi
+      NAMESERVER="$1"
+      ;;
     (-g|--gateway)
       shift
       if [ -z "$1" ]; then