1234567891011121314151617181920212223 |
- #!/bin/rc
- # set up any disk partitions
- rfork e
- if (! test -e /dev/sdctl)
- bind -a '#S' /dev
- # set up any /dev/sd partitions
- 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 -e /dev/fs/ctl && test -e '#k/fs')
- bind -a '#k' /dev
- if (~ $#sysname 1 && ! ~ $sysname '' &&
- test -r /cfg/$sysname/fsconfig && test -w /dev/fs/ctl)
- read -m /cfg/$sysname/fsconfig >/dev/fs/ctl
|