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
0dcea97c5a
commit
9ac368c617
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)) {
|
if (sysmngr_fwbank_set_bootbank(bank_id)) {
|
||||||
blobmsg_add_u8(&bb, "status", true);
|
blobmsg_add_u8(&bb, "success", true);
|
||||||
} else {
|
} else {
|
||||||
blobmsg_add_u8(&bb, "status", false);
|
blobmsg_add_u8(&bb, "success", false);
|
||||||
}
|
}
|
||||||
ubus_send_reply(ctx, req, bb.head);
|
ubus_send_reply(ctx, req, bb.head);
|
||||||
blob_buf_free(&bb);
|
blob_buf_free(&bb);
|
||||||
|
|
@ -690,6 +690,7 @@ static int upgrade_handler(struct ubus_context *ctx, struct ubus_object *obj,
|
||||||
blob_buf_free(&bb);
|
blob_buf_free(&bb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
init_global_fwbank_dump();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue