mirror of
https://github.com/novatiq/packages.git
synced 2026-07-17 09:13:03 +01:00
124ac892c6
Apply adblock update 1.4.5-1.4.7 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> Original commit messages: adblock: update 1.4.5 * change the default hphosts list source to ad and tracking servers only, the overall list includes to many false positives * new optional config parm 'adb_hotplugif' to restrict hotplug support to a certain wan interface or to disable it at all * documentation update * cosmetics adblock: update 1.4.6 * added a 'window.close()' to adblock landing page to automatically close any pop-ups that might get loaded with a blocked ad * simplified dnsmasq check in ap mode adblock: update 1.4.7 * add a query function to search the active blocklists for a specific domain (/etc/init.d/adblock query <DOMAIN>) * fix bug in ap mode/uhttpd port detection * check general firewall and dnsmasq package dependencies and remove redundant checks in ap mode
24 lines
510 B
Bash
24 lines
510 B
Bash
#!/bin/sh
|
|
#
|
|
|
|
adb_pid="${$}"
|
|
adb_helper="/usr/bin/adblock-helper.sh"
|
|
adb_pidfile="/var/run/adblock.pid"
|
|
|
|
if [ -f "${adb_pidfile}" ] || [ "${ACTION}" != "ifup" ]
|
|
then
|
|
exit 0
|
|
fi
|
|
|
|
. "${adb_helper}"
|
|
f_envload
|
|
|
|
if [ "${INTERFACE}" = "${adb_wanif4}" ] || [ "${INTERFACE}" = "${adb_wanif6}" ]
|
|
then
|
|
if [ -z "${adb_hotplugif}" ] || [ "${INTERFACE}" = "${adb_hotplugif}" ]
|
|
then
|
|
/etc/init.d/adblock start
|
|
f_log "adblock service started due to '${ACTION}' of '${INTERFACE}' interface"
|
|
fi
|
|
fi
|