Merge r4178
This commit is contained in:
parent
1b4d4ff11a
commit
242bffe894
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue