mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
adblock: 0.70.1
* fix root cause for https timeout issues * fix startup issues via luci * detach init start process to fix luci timeout issues * fix html header in adblock pages * fix adblock.conf options to single quotes Signed-off-by: Dirk Brenken <openwrt@brenken.org>
This commit is contained in:
@@ -10,18 +10,23 @@ adb_logger="/usr/bin/logger"
|
||||
|
||||
if [ -t 1 ]
|
||||
then
|
||||
log_term="-s"
|
||||
log_parm="-s"
|
||||
unset bg_parm
|
||||
else
|
||||
unset log_parm
|
||||
bg_parm="&"
|
||||
fi
|
||||
|
||||
if [ -r "${adb_pidfile}" ]
|
||||
then
|
||||
"${adb_logger}" ${log_term} -t "adblock[${adb_pid}] error" "adblock service already running ($(cat ${adb_pidfile} 2>/dev/null))"
|
||||
"${adb_logger}" ${log_parm} -t "adblock[${adb_pid}] error" "adblock service already running ($(cat ${adb_pidfile} 2>/dev/null))"
|
||||
exit 255
|
||||
fi
|
||||
|
||||
start()
|
||||
{
|
||||
"${adb_script}"
|
||||
eval "${adb_script}" ${bg_parm}
|
||||
return 0
|
||||
}
|
||||
|
||||
restart()
|
||||
@@ -53,7 +58,7 @@ stop()
|
||||
|
||||
if [ -n "${rm_done}" ] || [ -n "${uhttpd_pid}" ]
|
||||
then
|
||||
"${adb_logger}" ${log_term} -t "adblock[${adb_pid}] info " "all adblock related services stopped"
|
||||
"${adb_logger}" ${log_parm} -t "adblock[${adb_pid}] info " "all adblock related services stopped"
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user