From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <61c03c0ac41643d06bdaf7680b0bf4bf@granite.cias.osakafu-u.ac.jp> To: 9fans@cse.psu.edu Subject: Re: [9fans] building small Plan 9 network at home (LONG) From: okamoto@granite.cias.osakafu-u.ac.jp In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Date: Wed, 24 Dec 2003 13:45:32 +0900 Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: afe95230-eacc-11e9-9e20-41e7f4b1d025 I forgot one more very important file, /rc/bin/cpurc for venus. Here you go. ----cut here----- #!/bin/rc -x echo -n cpu >/env/service date -u >/env/boottime fileserver=3Dvenus # replace FACEDOM with the local domain to be used in the faces database facedom=3DFACEDOM TIMESYNCACCURACY=3D1000000 # accuracy in nanosec #ip/ipconfig -g 192.168.2.100 ether /net/ether0 192.168.2.10 255.255.255.= 0 >/dev/null >[2=3D1] ndb/cs sysname=3D`{cat /dev/sysname} ndb/dns -r NPROC=3D`{wc -l /dev/sysstat} NPROC=3D`{echo $NPROC|sed 's/ .*//'} prompt=3D($sysname^'# ' ' ') for(i in H w f t m v L S P U '$' =CE=A3) /bin/bind -a '#'^$i /dev >/dev/null >[2=3D1] ip/dhcpd ip/tftpd aux/timesync -a $TIMESYNCACCURACY auth/keyfs -w p -m /mnt/keys /adm/keys >/dev/null >[2=3D1] aux/listen -q -t /rc/bin/service.auth -d /rc/bin/service il aux/listen -q -t /rc/bin/service.auth -d /rc/bin/service tcp if(~ $mouseport ask){ echo -n 'mouseport is (ps2, ps2intellimouse, 0, 1, 2)[ps2]: ' mouseport=3D`{read} if(~ $#mouseport 0) mouseport=3Dps2 } if(~ $vgasize ask){ echo -n 'vgasize [640x480x8]: ' vgasize=3D`{read} if(~ $#vgasize 0) vgasize=3D640x480x8 } if(~ $monitor ask){ echo -n 'monitor is [xga]: ' monitor=3D`{read} if(~ $#monitor 0) monitor=3Dxga } if(test -f /dev/mousectl){ switch($mouseport){ case ps2 ps2intellimouse 0 1 2 if(~ $sysname VENUS) aux/mouse -b 1200 $mouseport if not aux/mouse $mouseport # parse vgasize into fields vgasize=3D`{echo $vgasize} if(! ~ $"monitor '' && ! ~ `{cat /dev/user} none){ aux/vga -l $vgasize # aux/vga -ip $vgasize > /usr/okamoto/mars.$vgasize } if(~ $accupoint 1) pipefile -dr /bin/aux/accupoint /dev/mouse } } auth/cron >> /sys/log/cron >[2=3D1]& swap /dev/sdC0/swap mount -c /srv/boot /n/venusother other ------cut here----- Kenji