From: martin f. krafft Date: Wed, 26 Feb 2014 13:01:39 +0000 (+0100) Subject: Allow nameserver to be specified X-Git-Url: https://git.madduck.net/code/vinst.git/commitdiff_plain/371c3a846758cc0ef0aa0c7ecd9fc5071b7725ad?hp=7b0c46474dc0716767b89901a33a85efbb2dc8cd Allow nameserver to be specified --- diff --git a/vinst b/vinst index 66b70aa..c6abe72 100755 --- 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