From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain MIME-Version: 1.0 (NeXT Mail 3.3J v130.3) From: arisawa@ar.aichi-u.ac.jp To: 9fans@cse.psu.edu Subject: Re: [9fans] Hooking a Plan9 Terminal to the Network References: <20001024050456.0AF34199CC@mail> Message-Id: <20001024224854.A6641199CC@mail> Date: Wed, 25 Oct 2000 07:13:23 +0900 Topicbox-Message-UUID: 1ce5d790-eac9-11e9-9e20-41e7f4b1d025 Hello, anothy@cosym.net wrote: >in my local setup, i use the following to get around >ip/ipconfig not looking at the ndb files. it's a >small change to /bin/[cpu,term]rc : > > ndb/cs > sysname=`{cat /dev/sysname} > myip=`{ndb/query sys $sysname ip} > ip/ipconfig ether /net/ether0 $myip 255.255.255.0 >/dev/null >[2=1] > ndb/dns -r How about the bellow: switch($ipconfig){ case local eval `{ndb/ipquery sys $sysname ip} eval `{ndb/ipquery sys $sysname ipgw} eval `{ndb/ipquery sys $sysname ipmask} ip/ipconfig -g $ipgw ether /net/ether0 add $ip $ipmask case dhcp ip/ipconfig >/dev/null >[2=1] } and in plan9.ini: ipconfig=dhcp or ipconfig=local Kenji Arisawa E-mail: arisawa@aichi-u.ac.jp