mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-03-06 09:30:34 +01:00
Commit uci without restart for cwmp proto
This commit is contained in:
parent
27cd8b3518
commit
23a4d482c1
1 changed files with 4 additions and 11 deletions
15
dmentry.c
15
dmentry.c
|
|
@ -349,18 +349,11 @@ int dm_entry_restart_services(void)
|
|||
|
||||
bbf_uci_commit_bbfdm();
|
||||
|
||||
// In case of cwmp proto, skip restarting services,
|
||||
// cwmp shall restart services on end session
|
||||
if (get_bbfdatamodel_type() == BBFDM_CWMP) {
|
||||
free_all_list_package_change(&head_package_change);
|
||||
return 0;
|
||||
}
|
||||
|
||||
list_for_each_entry(pc, &head_package_change, list) {
|
||||
if (strcmp(pc->package, "cwmp") == 0) {
|
||||
dmuci_init();
|
||||
dmuci_commit_package("cwmp");
|
||||
dmuci_exit();
|
||||
// In case of cwmp proto, skip restarting services,
|
||||
// cwmp shall restart services on end session
|
||||
if (get_bbfdatamodel_type() == BBFDM_CWMP) {
|
||||
dmuci_commit_package(pc->package);
|
||||
} else {
|
||||
dmubus_call_set("uci", "commit", UBUS_ARGS{{"config", pc->package, String}}, 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue