#!/bin/rc
kill kfs|rc
echo asdf > '#w/hd0partition'
bind -a '#w' /dev

echo creating partitions
disk/prep /dev/hd0 > /dev/null <<EOF
boot

1024
cache

20000
fs


*
y
EOF
bind -a '#w' /dev

echo copying kernel
dd -bs 512 -conv sync < /68020/9gnotdisk > /dev/hd0boot

echo making file system
disk/kfs -rf/dev/hd0fs

echo copying over files
9fs dk!bootes
cputype=68020 disk/mkfs -s /n/bootes /lib/proto/smallproto
