ubus: implement the reload command
authorFelix Fietkau <nbd@openwrt.org>
Thu, 5 Jun 2014 13:30:13 +0000 (15:30 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 5 Jun 2014 14:35:05 +0000 (16:35 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ubus.c

diff --git a/ubus.c b/ubus.c
index 232170a4106ee62b36019904665f773595b8c1b9..1009a3af147aa1dec79631d0e0b1ff9b93079533 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -22,6 +22,7 @@
 
 #include "ubus.h"
 #include "cache.h"
+#include "service.h"
 
 static struct ubus_auto_conn conn;
 static struct blob_buf b;
@@ -31,6 +32,7 @@ mdns_reload(struct ubus_context *ctx, struct ubus_object *obj,
                struct ubus_request_data *req, const char *method,
                struct blob_attr *msg)
 {
+       service_init();
        return 0;
 }