X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=applications%2Fluci-upnp%2Fluasrc%2Fmodel%2Fcbi%2Fupnp%2Fupnp.lua;h=57fa1ae4c8e5e84966a2be64ad5c56b4f074fccd;hb=a6860ba0c85194f638832de1ce9aa6d27689db08;hp=02fbfd6018f03372d8a54f4b659ce8ea5aba23db;hpb=b2a7b2497806ac300b24a618279bd08a072903c2;p=project%2Fluci.git diff --git a/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua b/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua index 02fbfd601..57fa1ae4c 100644 --- a/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua +++ b/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua @@ -20,18 +20,6 @@ s.addremove = false e = s:option(Flag, "enabled", translate("enable")) e.rmempty = false -function e.write(self, section, value) - local cmd = (value == "1") and "enable" or "disable" - if value ~= "1" then - os.execute("/etc/init.d/miniupnpd stop") - end - os.execute("/etc/init.d/miniupnpd " .. cmd) -end - -function e.cfgvalue(self, section) - return (os.execute("/etc/init.d/miniupnpd enabled") == 0) and "1" or "0" -end - s:option(Flag, "secure_mode", translate("Enable secure mode")).rmempty = true s:option(Flag, "log_output", translate("Log output")).rmempty = true s:option(Value, "download", translate("Downlink"), "kByte/s").rmempty = true