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