X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=mclu.ml;h=b4bbf947959ed6f3266116be44aaa99e48b7912c;hb=84c3f83dd0dfc363ce72b06dbb4a7955ce653dfd;hp=ff8103b304d24c64a666353e140a723efefff28a;hpb=f7d1a79773b8b04dfcd13c2dd2f6ae3b70d43663;p=mclu.git diff --git a/mclu.ml b/mclu.ml index ff8103b..b4bbf94 100644 --- a/mclu.ml +++ b/mclu.ml @@ -20,6 +20,8 @@ open Utils open Printf +let () = Random.self_init () + let config_file = let default = try Sys.getenv "MCLU_CONFIG" @@ -67,6 +69,9 @@ let anon_fun, get_anon_args = | "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