mirror of
https://github.com/novatiq/packages.git
synced 2026-07-30 15:23:07 +01:00
adblock: 0.80.1
* fix ip6tables reject types * simplified firewall ruleset for IPv4/IPv6 * fix memory detection (swap was always 0) * fix dnsmasq restart after partial restore * ad hotplug support, adblock will be started when wan interface comes up * change adblock init script accordingly, do nothing on 'boot' * optimize wget parameters for faster download results (in case of an error) * added CC installation notes to readme * removed needless external online check * removed needless optional parms 'adb_maxtime', 'adb_maxloop', 'adb_probeipv4' and 'adb_probeipv6' Signed-off-by: Dirk Brenken <openwrt@brenken.org>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
|
||||
if [ -f "/var/run/adblock.pid" ] || [ "${ACTION}" != "ifup" ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
. /lib/functions/network.sh
|
||||
adb_pid="${$}"
|
||||
adb_logger="/usr/bin/logger"
|
||||
network_find_wan adb_wanif4
|
||||
network_find_wan6 adb_wanif6
|
||||
|
||||
if [ "${INTERFACE}" = "${adb_wanif4}" ] || [ "${INTERFACE}" = "${adb_wanif6}" ]
|
||||
then
|
||||
/etc/init.d/adblock start
|
||||
"${adb_logger}" -t "adblock[${adb_pid}] info " "adblock service started due to '${ACTION}' of '${INTERFACE}' interface"
|
||||
fi
|
||||
Reference in New Issue
Block a user