From f5897d89d84c729ed77968bfb0c9893364a8ade4 Mon Sep 17 00:00:00 2001 From: Suvendhu Hansa Date: Thu, 26 Feb 2026 10:54:51 +0530 Subject: [PATCH] Cleanup dmmap on config download --- src/configs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/configs.c b/src/configs.c index 6c63b71..2f0fbbd 100644 --- a/src/configs.c +++ b/src/configs.c @@ -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: