From 3b35e4c676c4c48f42af4e943a39cbbc6bbe7e6b Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 13 Nov 2013 10:57:16 +0000 Subject: [PATCH] procd: options with default values are not parsed properly in the ubus register code Signed-off-by: John Crispin SVN-Revision: 38788 --- package/system/procd/files/procd.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.2