mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 19:01:56 +00:00
Merge r4178
This commit is contained in:
@@ -20,6 +20,9 @@ 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
|
||||
|
||||
|
||||
@@ -20,6 +20,9 @@ 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user