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
13 mount -qa /srv/usb /dev
15 # set up any partitions
18 # start up local swapping
19 disk=`{ls /dev/sd*/swap >[2]/dev/null}
21 swap $disk(1) >/dev/null >[2=1]
26 sysname=`{cat /dev/sysname}
27 if(~ $#sysname 0 || ~ $sysname ''){
28 sysname=cirno # default
29 echo -n $sysname >/dev/sysname
33 NPROC = `{wc -l </dev/sysstat}
35 # machine specific startup (e.g., for devices not probed)
36 if(test -e /cfg/$sysname/termrc)
37 . /cfg/$sysname/termrc
39 # automatic ip address setup
40 if(! grep u /net/ipselftab | grep -sv 127.0.0.1){
41 ether=`{ndb/query sys $sysname ether}
43 # try /lib/ndb first, then do dhcp
44 ip/ipconfig -N >[2]/dev/null || ip/ipconfig
49 if(! test -e /srv/dns)
52 if(! ~ $terminal *vx32*){
53 # start timesync if it isn't running and we weren't told not to
54 if(! ps|grep -s timesync)
55 if(! ~ $TIMESYNCARGS '')
56 aux/timesync $TIMESYNCARGS
77 ask vgasize ' is (text, 640x480x8, 1024x768x16, ...)' 1024x768x16
78 if(! ~ $"vgasize '' text none){
79 ask monitor ' is (vesa, xga, lcd, ...)' vesa
81 if(test -f /dev/mousectl)
82 ask mouseport ' is (ps2, ps2intellimouse, 0, 1, 2)' ps2
92 case ps2 ps2intellimouse 0 1 2
95 pipefile -dr /bin/aux/accupoint /dev/mouse
104 dontkill '^(ipconfig|factotum|mntgen|kfs|cwfs.*|cs|dns|listen|reboot)$'