3 TIMESYNCARGS=(-rLa1000000)
5 mntgen -s slashn && chmod 666 /srv/slashn
7 # bind all likely devices
8 for(i in S f k t m i v L P u U A '$' Σ κ)
9 bind -a '#'^$i /dev >/dev/null >[2=1]
12 mount -qb /srv/cons /dev
17 # set up any partitions
20 # start up local swapping
21 disk=`{ls /dev/sd*/swap >[2]/dev/null}
23 swap $disk(1) >/dev/null >[2=1]
28 sysname=`{cat /dev/sysname}
29 if(~ $#sysname 0 || ~ $sysname ''){
30 sysname=cirno # default
31 echo -n $sysname >/dev/sysname
35 NPROC = `{wc -l </dev/sysstat}
37 # machine specific startup (e.g., for devices not probed)
38 if(test -e /cfg/$sysname/termrc)
39 . /cfg/$sysname/termrc
41 # automatic ip address setup
42 if(! grep u /net/ipselftab | grep -sv 127.0.0.1){
43 ether=`{ndb/query sys $sysname ether}
45 # try /lib/ndb first, then do dhcp
46 ip/ipconfig -N >[2]/dev/null || ip/ipconfig
51 if(! test -e /srv/dns)
54 if(! ~ $terminal *vx32*){
55 # start timesync if it isn't running and we weren't told not to
56 if(! ps|grep -s timesync)
57 if(! ~ $TIMESYNCARGS '')
58 aux/timesync $TIMESYNCARGS
79 ask vgasize ' is (text, 640x480x8, 1024x768x16, ...)' 1024x768x16
80 if(! ~ $"vgasize '' text none){
81 ask monitor ' is (vesa, xga, lcd, ...)' vesa
83 if(test -f /dev/mousectl)
84 ask mouseport ' is (ps2, ps2intellimouse, 0, 1, 2)' ps2
94 case ps2 ps2intellimouse 0 1 2
97 pipefile -dr /bin/aux/accupoint /dev/mouse
106 dontkill '^(ipconfig|factotum|mntgen|kfs|cwfs.*|9660srv|paqfs|cs|dns|listen|reboot|usbd|disk)$'