mirror of
https://dev.iopsys.eu/system/sysmngr.git
synced 2026-03-14 21:20:18 +01:00
Cleanup dmmap on config download
This commit is contained in:
parent
9811a907c7
commit
f5897d89d8
1 changed files with 4 additions and 0 deletions
|
|
@ -130,6 +130,10 @@ static int bbf_config_restore(struct ubus_context *ctx, const char *url, const c
|
|||
if (dmuci_import(NULL, config_restore)) {
|
||||
snprintf(fault_msg, sizeof(fault_msg), "Failed to import the configurations");
|
||||
res = -1;
|
||||
} else {
|
||||
// Need to remove dmmap
|
||||
dmuci_set_value_varstate("dmmap", "dmmap", "cleanup", "1");
|
||||
dmuci_commit_package_varstate("dmmap");
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue