-- This is free software, licensed under the Apache License, Version 2.0
module("luci.controller.adblock", package.seeall)
-- This is free software, licensed under the Apache License, Version 2.0
module("luci.controller.adblock", package.seeall)
- local logfile = util.trim(util.exec("logread -e 'adblock'"))
+ local logfile
+
+ if nixio.fs.access("/var/log/messages") then
+ logfile = util.trim(util.exec("grep -F 'adblock-' /var/log/messages"))
+ else
+ logfile = util.trim(util.exec("logread -e 'adblock-'"))
+ end
templ.render("adblock/logread", {title = i18n.translate("Adblock Logfile"), content = logfile})
end
function queryData(domain)
templ.render("adblock/logread", {title = i18n.translate("Adblock Logfile"), content = logfile})
end
function queryData(domain)