From: Jo-Philipp Wich Date: Thu, 12 Jan 2012 12:15:21 +0000 (+0000) Subject: modules/admin-full: redirect init script output in startup model actions X-Git-Tag: 0.11.0~1169 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4bf31a8792be56198ac5cb5b52580fc19d886b2f;p=oweals%2Fluci.git modules/admin-full: redirect init script output in startup model actions --- diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/startup.lua b/modules/admin-full/luasrc/model/cbi/admin_system/startup.lua index a0c72caa2..ed1eabe1f 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_system/startup.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_system/startup.lua @@ -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"))