diff options
author | Steven Barth <steven@midlink.org> | 2009-01-25 17:30:14 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-01-25 17:30:14 +0000 |
commit | 6654b36d8ffdcc34773f1d8033b650a75e390258 (patch) | |
tree | 840042ff5b66f982cbfbdef6c2f5dca3e1080b89 /applications/luci-upnp/luasrc/model | |
parent | d35063211c5fd3ee9d5ae542a76906b0699dad0c (diff) |
Add unit for UPNP (closes #39)
Diffstat (limited to 'applications/luci-upnp/luasrc/model')
-rw-r--r-- | applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua | 4 | ||||
-rw-r--r-- | applications/luci-upnp/luasrc/model/cbi/upnp/upnpmini.lua | 4 |
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 0d07a564a..293b1fb96 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 592388348..db5a8fae5 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 |