mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-09 23:34:41 +01:00
Ensure 'switch_bank' option is set to 1 on firmware upgrade trigger
This commit is contained in:
parent
fb2269b315
commit
9c12c4b508
1 changed files with 3 additions and 0 deletions
|
|
@ -332,6 +332,9 @@ int cwmp_apply_firmware()
|
|||
e = icwmp_ubus_invoke("rpc-sys", "upgrade_start", b.head, NULL, NULL);
|
||||
if (e != 0) {
|
||||
CWMP_LOG(INFO, "rpc-sys upgrade_start ubus method failed: Ubus err code: %d", e);
|
||||
} else {
|
||||
//set /var/state 'switch_bank' option
|
||||
set_uci_path_value(VARSTATE_CONFIG, "icwmp.cpe.switch_bank", "1");
|
||||
}
|
||||
|
||||
blob_buf_free(&b);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue