3 # desc: subdivide plan 9 disk partition
8 case cwfs cwfs64 cwfs64x
9 echo -a 9fat -a nvram -a fscache -a fsworm -a other
11 echo -a 9fat -a nvram -a fs
17 if(! test -f /dev/sd*/plan9*){
23 echo 'The following Plan 9 disk partitions were found.'
25 disks=(/dev/sd*/plan9*)
28 echo q | disk/prep -r $i >[2]/dev/null
35 prompt $default 'Plan 9 partition to subdivide' $disks
38 echo 'This is disk/prep; use it to subdivide the Plan 9 partition.'
39 echo 'If it is not yet subdivided, a sensible layout will be suggested;'
40 echo 'you can probably just type ''w'' and then ''q''.'
42 disk/prep `{autotype} $disk
43 disk/prep -p $disk >`{basename -d $disk}^/ctl >[2]/dev/null
46 if(! test -f /dev/sd*/9fat)
48 if(! ~ $prepdisk ready)