mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 12:41:22 +00:00
antiblock: Update to 2.1.2r2
1) Added the ability to disable routes without deleting them. Signed-off-by: Khachatryan Karen <karen0734@gmail.com>
This commit is contained in:
committed by
Hannu Nyman
parent
1410fcc5f9
commit
d2a6cbf10a
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=antiblock
|
||||
PKG_VERSION:=2.1.2
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/karen07/antiblock
|
||||
|
||||
@@ -10,13 +10,17 @@ blacklist_file="$tmp_folder/blacklist"
|
||||
routes_parse() {
|
||||
local _config="$1"
|
||||
|
||||
local _gateway
|
||||
local _domains_path
|
||||
local _enabled
|
||||
config_get_bool _enabled "${_config}" "enabled" "1"
|
||||
if [ "${_enabled}" -eq "1" ]; then
|
||||
local _gateway
|
||||
local _domains_path
|
||||
|
||||
config_get _gateway "${_config}" gateway
|
||||
config_get _domains_path "${_config}" domains_path
|
||||
config_get _gateway "${_config}" gateway
|
||||
config_get _domains_path "${_config}" domains_path
|
||||
|
||||
procd_append_param command -r "${_gateway} ${_domains_path}"
|
||||
procd_append_param command -r "${_gateway} ${_domains_path}"
|
||||
fi
|
||||
}
|
||||
|
||||
blacklist_parse() {
|
||||
|
||||
Reference in New Issue
Block a user