From 20ba8815bc00bcf3548547e78d5d2a2e08de8cfd Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 1 May 2017 22:50:16 +0200 Subject: inst/configether: in manual network configuration, ask for dns server --- rc/bin/inst/ndbsetup | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'rc/bin/inst/ndbsetup') diff --git a/rc/bin/inst/ndbsetup b/rc/bin/inst/ndbsetup index ad795d9e5..6824c9192 100755 --- a/rc/bin/inst/ndbsetup +++ b/rc/bin/inst/ndbsetup @@ -28,15 +28,18 @@ case go cp /n/newfs/lib/ndb/local /tmp/ndb.local { ssam 'x/^.*ether='^$etheraddr^'.*$/ d' /tmp/ndb.local + + se = ('sys='^$sysname 'ether='^$etheraddr) echo switch($ethermethod){ case dhcp - echo 'sys='^$sysname 'ether='^$etheraddr - + echo $se case manual - echo 'sys='^$sysname 'ether='^$etheraddr \ - 'ip='^$ipaddr 'ipmask='^$ipmask 'ipgw='^$gwaddr + echo $se 'ip='^$ipaddr 'ipmask='^$ipmask 'ipgw='^$gwaddr + if(! ~ $#DNSSERVER 0){ + echo ' ' 'dns='^$DNSSERVER + } } echo } >/n/newfs/lib/ndb/local -- cgit v1.2.3