openwrt/package
Jo-Philipp Wich 1bad852ff5 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-17 08:10:20 +02:00
..
base-files base-files: network.sh: gracefully handle missing network.interface ubus ns 2018-07-17 08:10:20 +02:00
boot uboot-imx: bump to 2018.03 which fixes the build issues with fdt64_t redefinitions 2018-07-07 18:33:57 +02:00
devel perf: remove linux 4.4 workarounds 2018-07-07 14:53:26 +02:00
firmware firmware: amd64-microcode: update to 20180524 2018-07-07 12:23:00 +02:00
kernel kernel: insmod phy-broadcom module during preinit 2018-07-16 15:12:18 +02:00
libs librpc: add host build to install h files needed for nfs-kernel-server to get compiled 2018-07-16 15:12:19 +02:00
network dropbear: close all active clients on shutdown 2018-07-16 08:40:51 +02:00
system mtd: improve check for TRX header being already fixed 2018-07-15 23:27:09 +02:00
utils package/utils/f2fs-tools: Update to 1.11.0 2018-07-16 15:12:18 +02:00
Makefile imagebuilder: reuse rootfs preparation from rootfs.mk 2018-03-07 09:59:08 +01:00