aboutsummaryrefslogtreecommitdiff
path: root/projects/hsm/mgmt-bootloader.c
diff options
context:
space:
mode:
Diffstat (limited to 'projects/hsm/mgmt-bootloader.c')
-rw-r--r--projects/hsm/mgmt-bootloader.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/projects/hsm/mgmt-bootloader.c b/projects/hsm/mgmt-bootloader.c
index a062fd9..a4783cc 100644
--- a/projects/hsm/mgmt-bootloader.c
+++ b/projects/hsm/mgmt-bootloader.c
@@ -75,7 +75,9 @@ static int cmd_bootloader_upload(struct cli_def *cli, const char *command, char
void configure_cli_bootloader(struct cli_def *cli)
{
- cli_command_root(bootloader);
+ struct cli_command *c;
- cli_command_node(bootloader, upload, "Upload new bootloader image");
+ c = cli_register_command(cli, NULL, "bootloader", NULL, 0, 0, NULL);
+
+ cli_register_command(cli, c, "upload", cmd_bootloader_upload, 0, 0, "Upload new bootloader image");
}