libs/uci: Pipe output of reload commands to /dev/null
authorSteven Barth <steven@midlink.org>
Sat, 30 Aug 2008 21:14:08 +0000 (21:14 +0000)
committerSteven Barth <steven@midlink.org>
Sat, 30 Aug 2008 21:14:08 +0000 (21:14 +0000)
libs/uci/luasrc/model/uci.lua

index 3b135c5..d47ddc7 100644 (file)
@@ -58,7 +58,8 @@ local Cursor = getmetatable(cursor())
 -- @param config               UCI config
 function Cursor.apply(self, config)
        local conf = require "luci.config"
-       return conf.uci_oncommit[config] and os.execute(conf.uci_oncommit[config])
+       return conf.uci_oncommit[config] and
+        os.execute(conf.uci_oncommit[config] .. " >/dev/null 2>&1")
 end
 
 --- Delete all sections of a given type that match certain criteria.