Browse Source

privoxy: "list" does not work when there are 10+ entries

Signed-off-by: Clark Wang <dearvoid@gmail.com>
lilik-openwrt-22.03
Clark WANG (Home) 9 years ago
parent
commit
416d994d24
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      net/privoxy/Makefile
  2. +1
    -1
      net/privoxy/files/privoxy.init

+ 1
- 1
net/privoxy/Makefile View File

@ -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


+ 1
- 1
net/privoxy/files/privoxy.init View File

@ -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


Loading…
Cancel
Save