3 # desc: setup network configuration
4 # prereq: confignet copydist
6 etheraddr=`{cat $netdev/addr >[2]/dev/null}
9 case checkready checkdone
10 if(~ $#etheraddr 1 && ~ $netisfrom ether && ~ $ethermethod automatic manual && \
11 ! grep -s $etheraddr /n/newfs/lib/ndb/local)
19 echo 'Setup network configuration'
25 prompt $default 'sysname'
28 cp /n/newfs/lib/ndb/local /tmp/ndb.local
30 ssam 'x/^.*ether='^$etheraddr^'.*$/ d' /tmp/ndb.local
32 se = ('sys='^$sysname 'ether='^$etheraddr)
39 echo $se 'ip='^$ipaddr 'ipmask='^$ipmask 'ipgw='^$gwaddr
40 if(! ~ $#DNSSERVER 0){
41 echo ' ' 'dns='^$DNSSERVER
45 } >/n/newfs/lib/ndb/local