From 416d994d246974ddca92d2aae97071fc2c9f52fd Mon Sep 17 00:00:00 2001 From: "Clark WANG (Home)" Date: Sun, 3 Jan 2016 23:10:33 +0800 Subject: [PATCH] privoxy: "list" does not work when there are 10+ entries Signed-off-by: Clark Wang --- net/privoxy/Makefile | 2 +- net/privoxy/files/privoxy.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/privoxy/Makefile b/net/privoxy/Makefile index 76f56156fa..8c5ca2c87e 100644 --- a/net/privoxy/Makefile +++ b/net/privoxy/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=privoxy PKG_VERSION:=3.0.23 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=privoxy-$(PKG_VERSION)-stable-src.tar.gz PKG_SOURCE_URL:=@SF/ijbswa diff --git a/net/privoxy/files/privoxy.init b/net/privoxy/files/privoxy.init index b8d978fc34..96660dd5d7 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 -- 2.30.2