collectd: move jshn.sh include to remove warning
authorFlorian Eckert <redacted>
Wed, 3 Jul 2019 08:08:44 +0000 (10:08 +0200)
committerFlorian Eckert <redacted>
Thu, 4 Jul 2019 11:14:40 +0000 (13:14 +0200)
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 <redacted>
utils/collectd/Makefile
utils/collectd/files/collectd.init

index 6e621b7b8544e4cc98b3634b38685b51a5c1ddf8..b1f26cf5468570019c281bca6758753d19cf215d 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=collectd
 PKG_VERSION:=5.9.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=https://collectd.org/files/ \
index a0029267a7aafc6acd70213e114cdce2e06c7a1a..7b9c4623e43bf7572f7ded6b881e08a2ff5aa9de 100644 (file)
@@ -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"
 
git clone https://git.99rst.org/PROJECT