#17633: /etc/board.d/02_network broken
--------------------------+----------------------------------
Reporter: lsoltero | Owner: developers
Type: defect | Status: new
Priority: high | Milestone: Chaos Calmer (trunk)
Component: base system | Version: Trunk
Resolution: | Keywords: 02_network broken
--------------------------+----------------------------------
Comment (by lsoltero):
the following patch fixes the problem. It seems that the jhsn command does
not (and has never) support the '-i' option. It seems that previous
versions of the network script did not pass on arguments to jhsn. Now they
do. Anyway... the fix for this issue is simple. Just need to remove the
'-i' option in the call. the following patch fixes the problem.
diff --git a/package/base-files/files/lib/functions/uci-defaults-new.sh
b/package/base-files/files/lib/functions/uci-defaults-new.sh
index 528835b..0f5a013 100755
--- a/package/base-files/files/lib/functions/uci-defaults-new.sh
+++ b/package/base-files/files/lib/functions/uci-defaults-new.sh
@@ -297,6 +297,6 @@ board_config_update() {
}
board_config_flush() {
- json_dump -i > /tmp/.board.json
+ json_dump > /tmp/.board.json
mv /tmp/.board.json ${CFG}
}
--
Ticket URL: <https://dev.openwrt.org/ticket/17633#comment:1>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets