mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
adblock: update 1.4.10
- add 'enabled' check to iface hotplug event handler - decrease startup priority from 99 to 90 - fix tab indentation in config Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=adblock
|
PKG_NAME:=adblock
|
||||||
PKG_VERSION:=1.4.9
|
PKG_VERSION:=1.4.10
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PKG_LICENSE:=GPL-3.0+
|
PKG_LICENSE:=GPL-3.0+
|
||||||
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
adb_pid="${$}"
|
adb_pid="${$}"
|
||||||
adb_pidfile="/var/run/adblock.pid"
|
adb_pidfile="/var/run/adblock.pid"
|
||||||
adb_scriptver="1.4.9"
|
adb_scriptver="1.4.10"
|
||||||
adb_mincfgver="2.5"
|
adb_mincfgver="2.5"
|
||||||
adb_scriptdir="${0%/*}"
|
adb_scriptdir="${0%/*}"
|
||||||
if [ -r "${adb_pidfile}" ]
|
if [ -r "${adb_pidfile}" ]
|
||||||
|
|||||||
@@ -4,8 +4,9 @@
|
|||||||
adb_pid="${$}"
|
adb_pid="${$}"
|
||||||
adb_helper="/usr/bin/adblock-helper.sh"
|
adb_helper="/usr/bin/adblock-helper.sh"
|
||||||
adb_pidfile="/var/run/adblock.pid"
|
adb_pidfile="/var/run/adblock.pid"
|
||||||
|
adb_enabled="$(/etc/init.d/adblock enabled; echo $?)"
|
||||||
|
|
||||||
if [ -f "${adb_pidfile}" ] || [ "${ACTION}" != "ifup" ]
|
if [ "${adb_enabled}" = "1" ] || [ -f "${adb_pidfile}" ] || [ "${ACTION}" != "ifup" ]
|
||||||
then
|
then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
#
|
#
|
||||||
|
|
||||||
START=99
|
START=90
|
||||||
EXTRA_COMMANDS="toggle stats cfgup query"
|
EXTRA_COMMANDS="toggle stats cfgup query"
|
||||||
EXTRA_HELP=" toggle Toggle adblock 'on' or 'off'
|
EXTRA_HELP=" toggle Toggle adblock 'on' or 'off'
|
||||||
stats Update adblock statistics
|
stats Update adblock statistics
|
||||||
|
|||||||
Reference in New Issue
Block a user