s = m:section(NamedSection, "config", "upnpd", "")
e = s:option(Flag, "enabled", translate("enable"))
+e.rmempty = false
+
function e.write(self, section, value)
local cmd = (value == "1") and "enable" or "disable"
os.execute("/etc/init.d/miniupnpd " .. cmd)
return (os.execute("/etc/init.d/miniupnpd enabled") == 0) and "1" or "0"
end
+s:option(Flag, "secure_mode").rmempty = true
s:option(Flag, "log_output").rmempty = true
-s:option(Value, "download").rmempty = true
-s:option(Value, "upload").rmempty = true
+s:option(Value, "download", nil, "kByte/s").rmempty = true
+s:option(Value, "upload", nil, "kByte/s").rmempty = true
-return m
\ No newline at end of file
+return m