From 50db95e2f0a252e1d50d2a36d35196b2838f4d50 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.25.1