diff options
author | John Crispin <john@openwrt.org> | 2013-11-13 10:57:16 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-11-13 10:57:16 +0000 |
commit | 50db95e2f0a252e1d50d2a36d35196b2838f4d50 (patch) | |
tree | d1ad80f9b2bdea9bed7eb6aed596bb613e68d954 /package/system | |
parent | 1f938570927a03713b0aae1626aebaa0db4fb4f5 (diff) | |
download | mtk-20170518-50db95e2f0a252e1d50d2a36d35196b2838f4d50.zip mtk-20170518-50db95e2f0a252e1d50d2a36d35196b2838f4d50.tar.gz mtk-20170518-50db95e2f0a252e1d50d2a36d35196b2838f4d50.tar.bz2 |
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
Diffstat (limited to 'package/system')
-rw-r--r-- | package/system/procd/files/procd.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh index 7b8640a..d058c4f 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 |