3 # Copyright (C) 2009 Andy Spencer
4 # See ../COPYING for terms
7 echo "mkinit -- starting"
10 /usr/lib/plan9/bin/mk \
30 echo "mkinit -- entering main loop"
34 echo "mkinit -- booting"
35 if runamk -a && ! $TEST; then
36 # booted successuflly, redirect input
37 echo "skipping redirect"
39 #[ -p pipe ] || mkfifo $pipe
44 echo "mkinit -- halting"
50 echo "mkinit -- restarting $args"
55 start|stop|zap|status )
57 echo "mkinit -- ${cmd}ing $args"
63 echo "mkinit -- running mk cmd [$args]"
74 echo "unknown command [$cmd $args]"