#!/bin/rc
-. defs
+. ./defs
while()
{
# must be topologically sorted (by prereq)
tasks=(\
- systype\
configfs\
partdisk prepdisk\
mountfs\
mountdist\
download\
copydist\
- nvramsetup\
- bootsetup finish stop\
- stopether stopppp\
+ ndbsetup\
+ tzsetup\
+ bootsetup\
+ finish\
)
-# startether startppp stopether stopppp download\
# these don't show up in the menu but still matter
-pseudotasks=(configip havefiles etherup etherdown pppup pppdown)
+pseudotasks=(havefiles etherup etherdown pppup pppdown)
for(i in $tasks $pseudotasks)
$i=notdone
$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
}