From 48e89d8dee9197c0a2e261379ff90eba727efe77 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 25 Jan 2022 07:51:33 +0100 Subject: [PATCH] send a success message if the config had already been applied. Signed-off-by: John Crispin --- config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.c b/config.c index 1a0febd..063a8a5 100644 --- a/config.c +++ b/config.c @@ -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); }