mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
bbf: init context before commit cwmp changes
This commit is contained in:
parent
026b527588
commit
b8e4c61479
1 changed files with 5 additions and 2 deletions
|
|
@ -870,10 +870,13 @@ int dm_entry_restart_services(void)
|
|||
struct package_change *pc;
|
||||
|
||||
list_for_each_entry(pc, &head_package_change, list) {
|
||||
if (strcmp(pc->package, "cwmp") == 0)
|
||||
if (strcmp(pc->package, "cwmp") == 0) {
|
||||
dmuci_init();
|
||||
dmuci_commit_package("cwmp");
|
||||
else
|
||||
dmuci_end();
|
||||
} else {
|
||||
dmubus_call_set("uci", "commit", UBUS_ARGS{{"config", pc->package, String}}, 1);
|
||||
}
|
||||
}
|
||||
free_all_list_package_change(&head_package_change);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue