3 # desc: setup network configuration
4 # prereq: confignet copydist
6 etheraddr=`{cat /net/ether0/addr >[2]/dev/null}
9 case checkready checkdone
10 if(~ $#etheraddr 1 && ~ $netisfrom ether && ~ $ethermethod dhcp 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
35 echo 'sys='^$sysname 'ether='^$etheraddr
38 echo 'sys='^$sysname 'ether='^$etheraddr \
39 'ip='^$ipaddr 'ipmask='^$ipmask 'ipgw='^$gwaddr
42 } >/n/newfs/lib/ndb/local