From 041321c5f715ded58eaa86b41cf534b5b9b2a608 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 30 Aug 2008 21:14:08 +0000 Subject: [PATCH] libs/uci: Pipe output of reload commands to /dev/null --- libs/uci/luasrc/model/uci.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/uci/luasrc/model/uci.lua b/libs/uci/luasrc/model/uci.lua index 3b135c532..d47ddc76e 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. -- 2.25.1