diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-11-13 10:57:16 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-11-13 10:57:16 +0000 |
commit | 3099910abd0e08266e55f1e3c2b5de2beddc4117 (patch) | |
tree | 7f0766aa2d86f26008667df60e3423d534de6fd9 /package/system/procd | |
parent | 85f0e2f0250d83f5c552e64efcdb6e4c0aef6c84 (diff) |
procd: options with default values are not parsed properly in the ubus register code
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38788 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/system/procd')
-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 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 |