summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--libs/uci/luasrc/model/uci.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/uci/luasrc/model/uci.lua b/libs/uci/luasrc/model/uci.lua
index 3b135c532a..d47ddc76e2 100644
--- a/libs/uci/luasrc/model/uci.lua
+++ b/libs/uci/luasrc/model/uci.lua
@@ -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.