Signed-off-by: Stan Grishin <stangri@melmac.net>
s = m:section(NamedSection, "config", "simple-adblock")
-- General options
s = m:section(NamedSection, "config", "simple-adblock")
-- General options
-e = s:option(Flag, "enabled", translate("Enable/start service"))
+e = s:option(Flag, "enabled", translate("Start Simple Adblock service"))
-
-function e.cfgvalue(self, section)
- return self.map:get(section, "enabled") == "1" and luci.sys.init.enabled("simple-adblock") and self.enabled or self.disabled
-end
-
function e.write(self, section, value)
function e.write(self, section, value)
- if value == "1" then
- luci.sys.init.enable("simple-adblock")
- luci.sys.init.start("simple-adblock")
- else
luci.sys.init.stop("simple-adblock")
luci.sys.init.stop("simple-adblock")
- luci.sys.init.disable("simple-adblock")
end
return Flag.write(self, section, value)
end
end
return Flag.write(self, section, value)
end
o3.rmempty = false
o3.default = 1
o3.rmempty = false
o3.default = 1
local sysfs_path = "/sys/class/leds/"
local leds = {}
if nixio.fs.access(sysfs_path) then
local sysfs_path = "/sys/class/leds/"
local leds = {}
if nixio.fs.access(sysfs_path) then
s2 = m:section(NamedSection, "config", "simple-adblock")
-- Whitelisted Domains
d1 = s2:option(DynamicList, "whitelist_domain", translate("Whitelisted Domains"), translate("Individual domains to be whitelisted"))
s2 = m:section(NamedSection, "config", "simple-adblock")
-- Whitelisted Domains
d1 = s2:option(DynamicList, "whitelist_domain", translate("Whitelisted Domains"), translate("Individual domains to be whitelisted"))
msgid "Controls system log and console output verbosity"
msgstr ""
msgid "Controls system log and console output verbosity"
msgstr ""
-msgid "Enable/start service"
-msgstr ""
-
msgid "Force Router DNS"
msgstr ""
msgid "Force Router DNS"
msgstr ""
msgid "Some output"
msgstr ""
msgid "Some output"
msgstr ""
+msgid "Start Simple Adblock service"
+msgstr ""
+
msgid "Suppress output"
msgstr ""
msgid "Suppress output"
msgstr ""