diff --git a/rc/bin/fshalt b/rc/bin/fshalt index 2fed2465a..24ee921c4 100755 --- a/rc/bin/fshalt +++ b/rc/bin/fshalt @@ -45,6 +45,7 @@ cp /bin/rc /tmp cp /bin/sed /tmp cp /bin/sleep /tmp cp /bin/scram /tmp +cp /bin/test /tmp bind /tmp /rc bind /tmp /bin @@ -53,15 +54,12 @@ bind /tmp /bin fn x { echo echo -n halting... - for (i in $c){ + for (i in $c $h) + echo halt >>$i + for (i in $c $h){ echo -n $i... - echo halt >>$i - sleep 2 - } - for(i in $h){ - echo -n $i - echo halt >>$i - sleep 2 + while(test -e $i) + sleep 1 } echo echo done halting