@ -13,7 +13,7 @@
#
#
LC_ALL = C
LC_ALL = C
PATH = "/usr/sbin:/usr/bin:/sbin:/bin"
PATH = "/usr/sbin:/usr/bin:/sbin:/bin"
adb_ver = "3.8.8 "
adb_ver = "3.8.9 "
adb_basever = ""
adb_basever = ""
adb_enabled = 0
adb_enabled = 0
adb_debug = 0
adb_debug = 0
@ -283,13 +283,12 @@ f_temp()
if [ -d "/tmp" ] && [ -z " ${ adb_tmpdir } " ]
if [ -d "/tmp" ] && [ -z " ${ adb_tmpdir } " ]
then
then
adb_tmpdir = " $( mktemp -p /tmp -d) "
adb_tmpdir = " $( mktemp -p /tmp -d) "
adb_tmpload = " $( mktemp -p " ${ adb_tmpdir } " -tu) "
adb_tmpfile = " $( mktemp -p " ${ adb_tmpdir } " -tu) "
adb_tmpfile = " $( mktemp -p " ${ adb_tmpdir } " -tu) "
elif [ ! -d "/tmp" ]
elif [ ! -d "/tmp" ]
then
then
f_log "err" "the temp directory '/tmp' does not exist/is not mounted yet, please create the directory or raise the 'adb_triggerdelay' to defer the adblock start"
f_log "err" "the temp directory '/tmp' does not exist/is not mounted yet, please create the directory or raise the 'adb_triggerdelay' to defer the adblock start"
fi
fi
if [ ! -s " ${ adb_pidfile } " ]
if [ ! -f " ${ adb_pidfile } " ] || [ ! - s " ${ adb_pidfile } " ]
then
then
printf "%s" " ${ $} " > " ${ adb_pidfile } "
printf "%s" " ${ $} " > " ${ adb_pidfile } "
fi
fi
@ -929,13 +928,6 @@ f_log()
f_rmdns
f_rmdns
f_bgserv "stop"
f_bgserv "stop"
f_jsnup "error"
f_jsnup "error"
log_msg = "Please also check 'https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md'"
if [ -x " ${ adb_logger } " ]
then
" ${ adb_logger } " -p " ${ class } " -t " adblock- ${ adb_ver } [ ${ $} ] " " ${ log_msg } "
else
printf "%s %s %s\\n" " ${ class } " " adblock- ${ adb_ver } [ ${ $} ] " " ${ log_msg } "
fi
exit 1
exit 1
fi
fi
fi
fi
@ -979,8 +971,8 @@ f_main()
src_url = " $( eval printf "%s" \" \$ \{ adb_src_${ src_name } \} \" ) "
src_url = " $( eval printf "%s" \" \$ \{ adb_src_${ src_name } \} \" ) "
src_rset = " $( eval printf "%s" \" \$ \{ adb_src_rset_${ src_name } \} \" ) "
src_rset = " $( eval printf "%s" \" \$ \{ adb_src_rset_${ src_name } \} \" ) "
src_cat = " $( eval printf "%s" \" \$ \{ adb_src_cat_${ src_name } \} \" ) "
src_cat = " $( eval printf "%s" \" \$ \{ adb_src_cat_${ src_name } \} \" ) "
src_tmpload = " ${ adb_tmpload } . ${ src_name } "
src_tmpfile = " ${ adb_tmpfile } . ${ src_name } "
src_tmpload = " ${ adb_tmpfile } . ${ src_name } .load "
src_tmpfile = " ${ adb_tmpfile } . ${ src_name } .file "
src_rc = 4
src_rc = 4
# basic pre-checks
# basic pre-checks