openwrt/package
Jo-Philipp Wich f24e012997 base-files: network.sh: gracefully handle missing network.interface ubus ns
When attempting to use any of the functions in network.sh while netifd is
not started yet, the ubus interface dump query will fail with "Not found",
yielding an empty response.

Subsequently, jsonfilter is invoked with an empty string instead of a valid
JSON document, causing it to emit a second "unexpected end of data" error.

This caused the dnsmasq init script to log the following errors during
early boot on some systems:

    procd: /etc/rc.d/S19dnsmasq: Command failed: Not found.
    procd: /etc/rc.d/S19dnsmasq: Failed to parse json data: unexpected end of data.

Fix the issue by allowing the ubus query to fail with "Not found" but still
logging other failures, and by passing an empty JSON object to jsonfilter
if the interface status cache is empty.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-30 13:19:19 +02:00
..
base-files base-files: network.sh: gracefully handle missing network.interface ubus ns 2018-07-30 13:19:19 +02:00
boot uboot-kirkwood: fix malformed boot configuration 2018-06-26 23:35:18 +02:00
devel perf: restrict libunwind dependency to archs that actually support libunwind 2018-02-25 17:03:42 +01:00
firmware ipq40xx: add support for ZyXEL WRE6606 2018-06-21 07:02:37 +02:00
kernel mac80211: backport brcmfmac fixes & debugging helpers from 4.18 2018-07-27 08:14:13 +02:00
libs libubox: update to latest git HEAD 2018-07-25 13:03:55 +02:00
network iwinfo: update to version 2018-07-24 2018-07-30 11:21:25 +02:00
system ubus: update to latest git HEAD 2018-07-26 18:37:18 +02:00
utils busybox: udhcpc: replace udhcpc_no_msg_dontroute patch by upstream fix 2018-06-21 22:40:54 +02:00
Makefile imagebuilder: reuse rootfs preparation from rootfs.mk 2018-03-07 09:59:08 +01:00