mirror of
https://dev.iopsys.eu/system/sysmngr.git
synced 2025-12-10 08:14:38 +01:00
Align set_bootbank output
This commit is contained in:
parent
d84dd91e19
commit
9ebc556a65
1 changed files with 3 additions and 2 deletions
|
|
@ -625,9 +625,9 @@ static int set_bootbank_handler(struct ubus_context *ctx, struct ubus_object *ob
|
|||
}
|
||||
|
||||
if (sysmngr_fwbank_set_bootbank(bank_id)) {
|
||||
blobmsg_add_u8(&bb, "status", true);
|
||||
blobmsg_add_u8(&bb, "success", true);
|
||||
} else {
|
||||
blobmsg_add_u8(&bb, "status", false);
|
||||
blobmsg_add_u8(&bb, "success", false);
|
||||
}
|
||||
ubus_send_reply(ctx, req, bb.head);
|
||||
blob_buf_free(&bb);
|
||||
|
|
@ -690,6 +690,7 @@ static int upgrade_handler(struct ubus_context *ctx, struct ubus_object *obj,
|
|||
blob_buf_free(&bb);
|
||||
}
|
||||
|
||||
init_global_fwbank_dump();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue