modules/admin-full: redirect init script output in startup model actions

This commit is contained in:
Jo-Philipp Wich 2012-01-12 12:15:21 +00:00
parent 7db300b5e6
commit 4bf31a8792

View file

@ -71,7 +71,7 @@ end
start = s:option(Button, "start", translate("Start"))
start.inputstyle = "apply"
start.write = function(self, section)
luci.sys.call("/etc/init.d/%s %s" %{ inits[section].name, self.option })
luci.sys.call("/etc/init.d/%s %s >/dev/null" %{ inits[section].name, self.option })
end
restart = s:option(Button, "restart", translate("Restart"))