aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd/files/procd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/system/procd/files/procd.sh')
-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