Add unit for UPNP (closes #39)

This commit is contained in:
Steven Barth 2009-01-25 17:30:14 +00:00
parent d35063211c
commit 6654b36d8f
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, "log_output").rmempty = true
s:option(Value, "download").rmempty = true
s:option(Value, "upload").rmempty = true
s:option(Value, "download", nil, "kb/s").rmempty = true
s:option(Value, "upload", nil, "kb/s").rmempty = true
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"
end
s:option(Value, "download").rmempty = true
s:option(Value, "upload").rmempty = true
s:option(Value, "download", nil, "kb/s").rmempty = true
s:option(Value, "upload", nil, "kb/s").rmempty = true
return m