miragesdk: really allow to configure the DB path with the CLI

Signed-off-by: Thomas Gazagnaire <thomas@gazagnaire.org>
This commit is contained in:
Thomas Gazagnaire 2017-04-06 16:49:25 +02:00
parent 4437c4a23b
commit fd447ee082

View File

@ -94,7 +94,7 @@ let read_cmd file =
"/mtu";
"/nameservers/*"
] in
Ctl.v "/data" >>= fun db ->
Ctl.v path >>= fun db ->
let ctl fd = Ctl.Server.listen ~routes db fd in
let handlers () = Handlers.watch ~ethif db in
let net = Init.rawlink ~filter:(dhcp_filter ()) ethif in