#!/bin/rc
-. defs
+. ./defs
while()
{
# must be topologically sorted (by prereq)
tasks=(\
- systype\
configfs\
partdisk prepdisk\
mountfs\
mountdist\
download\
copydist\
- ndbsetup nvramsetup\
+ ndbsetup\
tzsetup\
bootsetup\
finish\
$i=notdone
if(~ $$i done) {
export $i
- $i checkdone
+ ./$i checkdone
$i=`{grep '^'$i^'=' /tmp/vars | sed -n '$p' | sed 's/.*=//'}
}
case yes
$i=ready
export $i
- $i checkready
+ ./$i checkready
$i=`{grep '^'$i^'=' /tmp/vars | sed -n '$p' | sed 's/.*=//'}
case no
$i=notdone
echo
echo $div
-$rd go
+./$rd go
$rd=done # if it's not, the check will figure that out
export $rd
}