summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-01-25 17:30:30 +0000
committerSteven Barth <steven@midlink.org>2009-01-25 17:30:30 +0000
commit1b42cbb63f53f36392b32bff2e63f8ceb748afa3 (patch)
tree240ebd897317bc3c09b8e9a3f9fea68375170554
parentd158c5b9f0fc03e240a05bd1992e374d288bd637 (diff)
Add unit for UPNP (closes #39)
-rw-r--r--applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua4
-rw-r--r--applications/luci-upnp/luasrc/model/cbi/upnp/upnpmini.lua4
2 files changed, 4 insertions, 4 deletions
diff --git a/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua b/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua
index 0d07a564ad..293b1fb966 100644
--- a/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua
+++ b/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua
@@ -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
diff --git a/applications/luci-upnp/luasrc/model/cbi/upnp/upnpmini.lua b/applications/luci-upnp/luasrc/model/cbi/upnp/upnpmini.lua
index 592388348c..db5a8fae5a 100644
--- a/applications/luci-upnp/luasrc/model/cbi/upnp/upnpmini.lua
+++ b/applications/luci-upnp/luasrc/model/cbi/upnp/upnpmini.lua
@@ -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 \ No newline at end of file