send a success message if the config had already been applied.

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2022-01-25 07:51:33 +01:00
parent 9bb8cfe405
commit 48e89d8dee

View File

@@ -51,8 +51,10 @@ config_load(const char *path)
static void
config_apply(uint32_t id)
{
if (uuid_latest && (uuid_latest == uuid_applied))
if (uuid_latest && (uuid_latest == uuid_applied)) {
configure_reply(0, "Already applied.", uuid_latest, id);
return;
}
ULOG_INFO("applying cfg:%ld\n", uuid_latest);
apply_run(id);
}