From 1920eb60fee785b748d602d924ce19d47cd6d0cd Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 3 Jul 2019 10:08:44 +0200 Subject: [PATCH] collectd: move jshn.sh include to remove warning Redmine-patch-id: 3680 If I build an image with the imagebuilder I get the following output during image building: ../root-x86/etc/init.d/collectd: line 4: /usr/share/libubox/jshn.sh: No such file or directory To remove this messsage move include to the needed postion, so that the message does not occur during image building on the host system anymore. Signed-off-by: Florian Eckert (cherry-picked, modified to match 19.07) Signed-off-by: Hannu Nyman --- utils/collectd/files/collectd.init | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/collectd/files/collectd.init b/utils/collectd/files/collectd.init index a0029267a..7b9c4623e 100644 --- a/utils/collectd/files/collectd.init +++ b/utils/collectd/files/collectd.init @@ -1,8 +1,6 @@ #!/bin/sh /etc/rc.common # Copyright (C) 2006-2016 OpenWrt.org -. "/usr/share/libubox/jshn.sh" - START=80 STOP=10 @@ -62,6 +60,7 @@ process_generic() { local config="" + . /usr/share/libubox/jshn.sh json_init json_load_file "$json"