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 a0c72ca..ed1eabe 100644 (file)
@@ -71,7 +71,7 @@ end
 start = s:option(Button, "start", translate("Start"))
 start.inputstyle = "apply"
 start.write = function(self, section)
 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"))
 end
 
 restart = s:option(Button, "restart", translate("Restart"))