aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd/files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-11-13 10:57:16 +0000
committerJohn Crispin <blogic@openwrt.org>2013-11-13 10:57:16 +0000
commite41c835cee5545e1917edf60e019d71fe19c7a67 (patch)
tree7f0766aa2d86f26008667df60e3423d534de6fd9 /package/system/procd/files
parenta79f9a758e1e087bbe81ea3c1cbf40d3d3c579d7 (diff)
downloadupstream-e41c835cee5545e1917edf60e019d71fe19c7a67.tar.gz
upstream-e41c835cee5545e1917edf60e019d71fe19c7a67.tar.bz2
upstream-e41c835cee5545e1917edf60e019d71fe19c7a67.zip
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/files')
-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