From: blogic 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://207.154.207.93/?a=commitdiff_plain;h=3099910abd0e08266e55f1e3c2b5de2beddc4117;p=openwrt.git procd: options with default values are not parsed properly in the ubus register code Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38788 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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