git.annexia.org
/
mclu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
boot: Use host-passthrough instead of host-model.
[mclu.git]
/
mclu.ml
diff --git
a/mclu.ml
b/mclu.ml
index
65e7e7b
..
b4bbf94
100644
(file)
--- a/
mclu.ml
+++ b/
mclu.ml
@@
-20,6
+20,8
@@
open Utils
open Printf
open Printf
+let () = Random.self_init ()
+
let config_file =
let default =
try Sys.getenv "MCLU_CONFIG"
let config_file =
let default =
try Sys.getenv "MCLU_CONFIG"
@@
-52,6
+54,12
@@
let anon_fun, get_anon_args =
| "boot" ->
speclist := Mclu_boot.get_arg_speclist ();
subcommand_run := Mclu_boot.run
| "boot" ->
speclist := Mclu_boot.get_arg_speclist ();
subcommand_run := Mclu_boot.run
+ | "console" ->
+ speclist := Mclu_console.get_arg_speclist ();
+ subcommand_run := Mclu_console.run
+ | "destroy" ->
+ speclist := Mclu_destroy.get_arg_speclist ();
+ subcommand_run := Mclu_destroy.run
| "list" ->
speclist := Mclu_list.get_arg_speclist ();
subcommand_run := Mclu_list.run
| "list" ->
speclist := Mclu_list.get_arg_speclist ();
subcommand_run := Mclu_list.run
@@
-61,9
+69,15
@@
let anon_fun, get_anon_args =
| "on" ->
speclist := Mclu_onoff.get_arg_speclist ();
subcommand_run := Mclu_onoff.run ~on:true
| "on" ->
speclist := Mclu_onoff.get_arg_speclist ();
subcommand_run := Mclu_onoff.run ~on:true
+ | "reboot" ->
+ speclist := Mclu_reboot.get_arg_speclist ();
+ subcommand_run := Mclu_reboot.run
| "status" ->
speclist := Mclu_status.get_arg_speclist ();
subcommand_run := Mclu_status.run
| "status" ->
speclist := Mclu_status.get_arg_speclist ();
subcommand_run := Mclu_status.run
+ | "viewer" ->
+ speclist := Mclu_viewer.get_arg_speclist ();
+ subcommand_run := Mclu_viewer.run
| _ ->
eprintf "mclu: unknown subcommand '%s'
For help, use mclu --help or read the mclu(1) man page.\n" arg;
| _ ->
eprintf "mclu: unknown subcommand '%s'
For help, use mclu --help or read the mclu(1) man page.\n" arg;