Add unit for UPNP (closes #39)

This commit is contained in:
Steven Barth 2009-01-25 17:30:30 +00:00
parent d158c5b9f0
commit 1b42cbb63f
2 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,7 @@ end
s:option(Flag, "secure_mode").rmempty = true s:option(Flag, "secure_mode").rmempty = true
s:option(Flag, "log_output").rmempty = true s:option(Flag, "log_output").rmempty = true
s:option(Value, "download").rmempty = true s:option(Value, "download", nil, "kb/s").rmempty = true
s:option(Value, "upload").rmempty = true s:option(Value, "upload", nil, "kb/s").rmempty = true
return m return m

View file

@ -25,7 +25,7 @@ function e.cfgvalue(self, section)
return (os.execute("/etc/init.d/miniupnpd enabled") == 0) and "1" or "0" return (os.execute("/etc/init.d/miniupnpd enabled") == 0) and "1" or "0"
end end
s:option(Value, "download").rmempty = true s:option(Value, "download", nil, "kb/s").rmempty = true
s:option(Value, "upload").rmempty = true s:option(Value, "upload", nil, "kb/s").rmempty = true
return m return m