mirror of
https://github.com/novatiq/packages.git
synced 2026-07-30 23:33:06 +01:00
adblock: update 3.8.4
* fix the 'adb_sysver' output * pass the adblock version information to the helper scripts correctly Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
@@ -12,16 +12,16 @@ PATH="/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
if [ -r "/lib/functions.sh" ]
|
||||
then
|
||||
. "/lib/functions.sh"
|
||||
adb_basever="$(uci_get adblock global adb_basever)"
|
||||
adb_dns="$(uci_get adblock global adb_dns)"
|
||||
fi
|
||||
adb_ver="${1}"
|
||||
adb_ubus="$(command -v ubus)"
|
||||
|
||||
if [ -x "${adb_ubus}" ] && [ -n "${adb_dns}" ]
|
||||
then
|
||||
logger -p "info" -t "adblock-${adb_basever} [${$}]" "ubus/adblock service started"
|
||||
logger -p "info" -t "adblock-${adb_ver}[${$}]" "ubus/adblock service started"
|
||||
"${adb_ubus}" -S -M r -m invoke monitor | \
|
||||
{ grep -qE "\"method\":\"(set|signal)\",\"data\":\{\"name\":\"${adb_dns}\""; [ $? -eq 0 ] && /etc/init.d/adblock start; }
|
||||
else
|
||||
logger -p "err" -t "adblock-${adb_basever} [${$}]" "can't start ubus/adblock service"
|
||||
logger -p "err" -t "adblock-${adb_ver}[${$}]" "can't start ubus/adblock service"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user