mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-02-13 19:39:10 +01:00
bbf: commit cwmp changes without restarting its service
This commit is contained in:
parent
15d02b20fa
commit
daa673dd56
1 changed files with 4 additions and 5 deletions
|
|
@ -870,9 +870,10 @@ 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)
|
||||
continue;
|
||||
dmubus_call_set("uci", "commit", UBUS_ARGS{{"config", pc->package, String}}, 1);
|
||||
if (strcmp(pc->package, "cwmp") == 0)
|
||||
dmuci_commit_package("cwmp");
|
||||
else
|
||||
dmubus_call_set("uci", "commit", UBUS_ARGS{{"config", pc->package, String}}, 1);
|
||||
}
|
||||
free_all_list_package_change(&head_package_change);
|
||||
|
||||
|
|
@ -884,8 +885,6 @@ int dm_entry_revert_changes(void)
|
|||
struct package_change *pc;
|
||||
|
||||
list_for_each_entry(pc, &head_package_change, list) {
|
||||
if(strcmp(pc->package, "cwmp") == 0)
|
||||
continue;
|
||||
dmubus_call_set("uci", "revert", UBUS_ARGS{{"config", pc->package, String}}, 1);
|
||||
}
|
||||
free_all_list_package_change(&head_package_change);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue