From: John Crispin Date: Wed, 13 Nov 2013 10:57:16 +0000 (+0000) Subject: procd: options with default values are not parsed properly in the ubus register code X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=50db95e2f0a252e1d50d2a36d35196b2838f4d50;p=openwrt%2Fstaging%2Fthess.git procd: options with default values are not parsed properly in the ubus register code Signed-off-by: John Crispin SVN-Revision: 38788 --- diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh index 7b8640ad72..d058c4ff5e 100644 --- a/package/system/procd/files/procd.sh +++ b/package/system/procd/files/procd.sh @@ -229,7 +229,8 @@ uci_validate_section() shift; shift; shift while [ -n "$1" ]; do - json_add_string "${1%:*}" "${1#*:}" + local tmp=${1#*:} + json_add_string "${1%%:*}" "${tmp%%:*}" shift done