Load service JSONs from /etc/umdns/
authorRafał Miłecki <rafal@milecki.pl>
Sat, 11 Feb 2017 11:00:33 +0000 (12:00 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 13 Feb 2017 06:32:42 +0000 (07:32 +0100)
It matches recent project rename & uses directory that sholud be
persistent. Using /tmp/ could result in user having to setup JSONs after
every reboot.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: John Crispin <john@phrozen.org>
service.c

index 36d20c74830ed783b7ca272c63977b2dd93a4064..15f05f95d53029151186bf9bec989d3c09416d42 100644 (file)
--- a/service.c
+++ b/service.c
@@ -271,7 +271,7 @@ service_init_cb(struct ubus_request *req, int type, struct blob_attr *msg)
        get_hostname();
 
        vlist_update(&services);
-       service_load("/tmp/run/mdns/*");
+       service_load("/etc/umdns/*");
 
        blob_for_each_attr(cur, msg, rem) {
                struct blob_attr *cur2;