summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrc/bin/fshalt14
1 files changed, 6 insertions, 8 deletions
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){
- echo -n $i...
- echo halt >>$i
- sleep 2
- }
- for(i in $h){
- echo -n $i
+ for (i in $c $h)
echo halt >>$i
- sleep 2
+ for (i in $c $h){
+ echo -n $i...
+ while(test -e $i)
+ sleep 1
}
echo
echo done halting