diff --git a/rc/bin/cpurc b/rc/bin/cpurc index 3838256eb..22d0673cf 100755 --- a/rc/bin/cpurc +++ b/rc/bin/cpurc @@ -17,31 +17,32 @@ mntgen -s slashn && chmod 666 /srv/slashn # name translation, cs sets /dev/sysname ndb/cs sysname=`{cat /dev/sysname} - -# parallelism for mk -NPROC = `{wc -l /dev/sysname } prompt=($sysname^'# ' ' ') +# parallelism for mk +NPROC=`{wc -l [2]/dev/null || ip/ipconfig +if(test -r /net/ipselftab){ + if(! grep u /net/ipselftab | grep -sv 127.0.0.1){ + ether=`{ndb/query sys $sysname ether} + if(~ $#ether 1){ + # try /lib/ndb first, then do dhcp + ip/ipconfig -N >[2]/dev/null || ip/ipconfig + } + rm -f /env/ether } - rm -f /env/ether } -if(! test -e /srv/dns) +if(! test -e /net/dns) ndb/dns -r if(! ps|grep -s timesync){ diff --git a/rc/bin/termrc b/rc/bin/termrc index 41ba7ef88..0c8109347 100755 --- a/rc/bin/termrc +++ b/rc/bin/termrc @@ -32,23 +32,25 @@ if(~ $#sysname 0 || ~ $sysname ''){ } # parallelism for mk -NPROC = `{wc -l [2]/dev/null || ip/ipconfig +if(test -r /net/ipselftab){ + if(! grep u /net/ipselftab | grep -sv 127.0.0.1){ + ether=`{ndb/query sys $sysname ether} + if(~ $#ether 1){ + # try /lib/ndb first, then do dhcp + ip/ipconfig -N >[2]/dev/null || ip/ipconfig + } + rm -f /env/ether } - rm -f /env/ether } -if(! test -e /srv/dns) +if(! test -e /net/dns) ndb/dns -r if(! ~ $terminal *vx32*){