From 395df4743740aad6e22b35dbe193874e2a5296c9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 28 Oct 2010 12:26:48 +0000 Subject: [PATCH] luci-0.9: merge r6313 --- contrib/package/freifunk-watchdog/src/ucix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/package/freifunk-watchdog/src/ucix.c b/contrib/package/freifunk-watchdog/src/ucix.c index 634d9e16c..44de25903 100644 --- a/contrib/package/freifunk-watchdog/src/ucix.c +++ b/contrib/package/freifunk-watchdog/src/ucix.c @@ -40,7 +40,11 @@ static inline int ucix_get_ptr(struct uci_context *ctx, const char *p, const cha struct uci_context* ucix_init(const char *config_file) { struct uci_context *ctx = uci_alloc_context(); +#ifdef uci_to_delta + uci_add_delta_path(ctx, "/var/state"); +#else uci_add_history_path(ctx, "/var/state"); +#endif if(uci_load(ctx, config_file, NULL) != UCI_OK) { return NULL; -- 2.25.1