addr=127.0.0.1 address=tcp!$addr!venti httpaddress=tcp!$addr!http sd=sdC0 dev=/dev/$sd iso=/usr/bootes/cd/plan9.iso data=$dev/data plan9=$dev/plan9 9fat=$dev/9fat fossil=$dev/fossil isect=$dev/isect arenas=$dev/arenas bloom=$dev/bloom { echo [menu] echo menuitem'='cpu, Plan 9 CPU Kernel echo menuitem'='terminal, Plan 9 Terminal Kernel echo menuitem'='manual, Manual echo menudefault'='cpu, 10 echo echo [cpu] echo bootfile'='$sd!9fat!9pccpuf echo echo [terminal] echo bootfile'='$sd!9fat!9pcf echo echo [manual] echo echo [common] echo nobootprompt'='local!'#'S/$sd/fossil echo bootargs'='local!'#'S/$sd/fossil echo bootdisk'='local!'#'S/$sd/fossil echo venti'=#'S/$sd/arenas echo # echo console'='0 b115200 # echo *nobiosload'='1 echo *nodumpstack'='1 # echo *nomp'='1 echo echo mouseport'='ps2intellimouse echo monitor'='vesa echo vgasize'='1280x1024x32 echo user'='glenda } > /tmp/plan9.ini disk/mbr -m /386/mbr $data disk/fdisk -baw $data disk/prep -bw -a^(9fat nvram fscfg fossil isect arenas bloom) $plan9 disk/format -b /386/pbslba -d -r 2 $9fat /386/9load /386/9pcf /386/9pccpuf /tmp/plan9.ini venti/fmtarenas arenas $arenas venti/fmtisect isect $isect venti/fmtbloom -s 64m $bloom fossil/flfmt -y $fossil { echo index main echo isect $isect echo arenas $arenas echo bloom $bloom echo webroot /sys/src/cmd/venti/srv/www } | venti/conf -w $arenas venti/fmtindex $arenas { echo fsys main config echo fsys main open echo fsys main snaptime -s 60 -a 0500 -t 2880 } | fossil/conf -w $fossil venti/venti -m 20 -c $arenas -a $address -h $httpaddress venti=$address fossil/fossil -m 20 -f $fossil -c 'srv -APW fossil' -c 'srv -p fscons' 9660srv -f $iso mount /srv/9660 /n/dist mount -c /srv/fossil /n/newfs echo fsys main create /active/adm adm sys d775 >>/srv/fscons echo fsys main create /active/adm/users adm sys 664 >>/srv/fscons echo uname upas :upas >>/srv/fscons echo users -w >>/srv/fscons for(i in dist dist/replica dist/replica/client) echo fsys main create /active/$i sys sys d775 >>/srv/fscons echo fsys main create /active/dist/replica/client/plan9.db sys sys 664 >>/srv/fscons echo fsys main create /active/dist/replica/client/plan9.log sys sys a664 >>/srv/fscons replica/pull -v /sys/lib/dist/pc/inst/replcfg unmount /n/newfs echo fsys main sync >>/srv/fscons echo fsys main halt >>/srv/fscons kill fossil | rc venti/sync kill venti | rc