3 TIMESYNCARGS=(-rLa1000000)
5 # bind all likely devices
6 for(i in S f k t m i v L P u U A '$' Σ κ)
7 bind -a '#'^$i /dev >/dev/null >[2=1]
10 mount -qb /srv/cons /dev
13 mntgen -s slashn && chmod 666 /srv/slashn
14 mntgen -s slashmnt /mnt && chmod 666 /srv/slashmnt
15 mntgen -s mntexport /mnt/exportfs && chmod 666 /srv/mntexport
17 # move factotum from /mnt to /mnt/factotum
18 mount /srv/factotum /mnt/temp
19 unmount /srv/factotum /mnt
20 bind /mnt/temp/factotum /mnt/factotum
26 # set up any partitions
29 # start up local swapping
30 disk=`{ls /dev/sd*/swap >[2]/dev/null}
32 swap $disk(1) >/dev/null >[2=1]
35 # we do this before we have a name. we may need to do network
36 # setup so that we can get a name.
37 if(test -e /rc/bin/termrc.local)
38 . /rc/bin/termrc.local
40 # cs sets sysname (termrc.local may already have started it so check)
41 if(! test -e /srv/cs && ! test -e /net/cs)
43 sysname=`{cat /dev/sysname}
44 if(~ $#sysname 0 || ~ $sysname ''){
45 sysname=cirno # default
46 echo -n $sysname >/dev/sysname
50 NPROC=`{wc -l </dev/sysstat}
52 # machine specific startup (e.g., for devices not probed)
53 if(test -e /cfg/$sysname/termrc)
54 . /cfg/$sysname/termrc
56 # automatic ip address setup
57 if(test -r /net/ipselftab){
58 if(! grep u /net/ipselftab | grep -sv 127.0.0.1){
59 ether=`{ndb/query sys $sysname ether}
61 # try /lib/ndb first, then do dhcp
62 ip/ipconfig -N >[2]/dev/null || ip/ipconfig -h $sysname
68 if(! test -e /net/dns)
71 if(! ~ $terminal *vx32*){
72 # start timesync if it isn't running and we weren't told not to
73 if(! ps|grep -s timesync)
74 if(! ~ $TIMESYNCARGS '')
75 aux/timesync $TIMESYNCARGS
96 ask vgasize ' is (text, 640x480x8, 1024x768x16, ...)' 1024x768x16
97 if(! ~ $"vgasize '' text none){
98 ask monitor ' is (vesa, xga, lcd, ...)' vesa
100 if(test -f /dev/mousectl)
101 ask mouseport ' is (ps2, ps2intellimouse, 0, 1, 2)' ps2
111 case ps2 ps2intellimouse 0 1 2
114 pipefile -dr /bin/aux/accupoint /dev/mouse
123 dontkill '^(ipconfig|factotum|mntgen|venti|hjfs|kfs|cfs|cwfs.*|9660srv|dossrv|paqfs|cs|dns|listen|reboot|usbd|kb|disk|ether)$'