Commit 1189232d authored by David Johnson's avatar David Johnson

Whoops, make sure to extract only the first DNS server.

parent d244d98e
......@@ -66,8 +66,8 @@ ovs-vsctl add-port ${EXTERNAL_NETWORK_BRIDGE} ${EXTERNAL_NETWORK_INTERFACE}
mynetmask=`ifconfig ${EXTERNAL_NETWORK_INTERFACE} | sed -n -e 's/^.*Mask:\([0-9]*.[0-9]*.[0-9]*.[0-9]*\).*$/\1/p'`
mygw=`ip route show default | sed -n -e 's/^default via \([0-9]*.[0-9]*.[0-9]*.[0-9]*\).*$/\1/p'`
DNSDOMAIN=`cat /etc/resolv.conf | grep search | awk '{ print $2 }'`
DNSSERVER=`cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }'`
DNSDOMAIN=`cat /etc/resolv.conf | grep search | head -1 | awk '{ print $2 }'`
DNSSERVER=`cat /etc/resolv.conf | grep nameserver | head -1 | awk '{ print $2 }'`
#
# We need to blow away the Emulab config -- no more dhcp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment