diff options
author | Clark WANG (Home) <dearvoid@gmail.com> | 2016-01-03 23:10:33 +0800 |
---|---|---|
committer | Clark WANG (Home) <dearvoid@gmail.com> | 2016-01-03 23:10:33 +0800 |
commit | 416d994d246974ddca92d2aae97071fc2c9f52fd (patch) | |
tree | 5d0a4c06b74e0e52312cf8a80868138707ec5b88 /net/privoxy/files | |
parent | d44c1a9bcf694aa7bef4ca93871a06a8e1263dc7 (diff) |
privoxy: "list" does not work when there are 10+ entries
Signed-off-by: Clark Wang <dearvoid@gmail.com>
Diffstat (limited to 'net/privoxy/files')
-rw-r--r-- | net/privoxy/files/privoxy.init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/privoxy/files/privoxy.init b/net/privoxy/files/privoxy.init index b8d978fc3..96660dd5d 100644 --- a/net/privoxy/files/privoxy.init +++ b/net/privoxy/files/privoxy.init @@ -28,7 +28,7 @@ _uci2conf() { # detect list options (LENGTH) and ignore echo $__OPT | grep -i "_LENGTH" >/dev/null 2>&1 && return # detect list options (ITEM) and ignore - echo $__OPT | grep -i "_ITEM" >/dev/null 2>&1 && __OPT=$(echo $__OPT | sed -e "s#_ITEM.##g") + echo $__OPT | grep -i "_ITEM" >/dev/null 2>&1 && __OPT=$(echo $__OPT | sed -e "s#_ITEM.*##g") # uci only accept "_" but we need "-" local __OPT=$(echo $__OPT | sed -e "s#_#-#g") # write to config |