aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-11-13 10:57:16 +0000
committerJohn Crispin <john@openwrt.org>2013-11-13 10:57:16 +0000
commit50db95e2f0a252e1d50d2a36d35196b2838f4d50 (patch)
treed1ad80f9b2bdea9bed7eb6aed596bb613e68d954
parent1f938570927a03713b0aae1626aebaa0db4fb4f5 (diff)
downloadupstream-50db95e2f0a252e1d50d2a36d35196b2838f4d50.tar.gz
upstream-50db95e2f0a252e1d50d2a36d35196b2838f4d50.tar.bz2
upstream-50db95e2f0a252e1d50d2a36d35196b2838f4d50.zip
procd: options with default values are not parsed properly in the ubus register code
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38788
-rw-r--r--package/system/procd/files/procd.sh3
1 files changed, 2 insertions, 1 deletions
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