modules/admin-full: redirect init script output in startup model actions
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 12 Jan 2012 12:15:21 +0000 (12:15 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 12 Jan 2012 12:15:21 +0000 (12:15 +0000)
modules/admin-full/luasrc/model/cbi/admin_system/startup.lua

index a0c72caa2a6e8afbd5f881de7c2c4cad4ff6cc24..ed1eabe1f97a903ed1bd206a32f503dcb4cc491e 100644 (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"))