#!/bin/rc
# set up any /dev/sd partitions
rfork e
for(disk in /dev/sd[0-9A-Zabd-z]*) {
if(test -f $disk/data && test -f $disk/ctl)
disk/fdisk -p $disk/data >$disk/ctl >[2]/dev/null
for(part in $disk/plan9*)
if(test -f $part)
disk/prep -p $part >$disk/ctl >[2]/dev/null
}
sysname=`{cat /dev/sysname}
# set up any fs(3) partitions
if (test -r /cfg/$sysname/fsconfig)
read -m /cfg/$sysname/fsconfig >/dev/fs/ctl
|