From 5fbd904e5b4ed87243c09c86adcfb17ae93aa4f5 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Mon, 27 Mar 2017 09:35:04 +0300 Subject: netifd: propagate error code on netifd_reload() The context is that we generate some of the UCI config for netifd via scripts/programs. Every once in a while, there's a goof when doing that UCI generation, and netifd prints out the error at stderr, but returns 0 (success) err-code. This change will fail the ubus call if UCI config is invalid or missing for /etc/config/network. Signed-off-by: Alexandru Ardelean Acked-by: Hans Dedecker --- config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.h') diff --git a/config.h b/config.h index 5adaca6..fae7cd8 100644 --- a/config.h +++ b/config.h @@ -19,6 +19,6 @@ extern bool config_init; -void config_init_all(void); +int config_init_all(void); #endif -- cgit v1.2.3