From e41c835cee5545e1917edf60e019d71fe19c7a67 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 13 Nov 2013 10:57:16 +0000 Subject: 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 --- 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 -- cgit v1.2.3