From cf4b89b06be6d6191965e18517a39f870aa5e729 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 28 Feb 2015 19:05:42 +0100 Subject: [PATCH] luci-app-upnp: supress stderr when listing MINIUPNPD chain Current OpenWrt trunk now relays uhttpd stderr to syslog, so don't spam it with "iptables: No chain/target/match by that name." when miniupnpd is not configured but its status is queried by an overview page applet. Signed-off-by: Jo-Philipp Wich --- applications/luci-app-upnp/luasrc/controller/upnp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-upnp/luasrc/controller/upnp.lua b/applications/luci-app-upnp/luasrc/controller/upnp.lua index 8fc697fd6..790bf29d8 100644 --- a/applications/luci-app-upnp/luasrc/controller/upnp.lua +++ b/applications/luci-app-upnp/luasrc/controller/upnp.lua @@ -19,7 +19,7 @@ function index() end function act_status() - local ipt = io.popen("iptables --line-numbers -t nat -xnvL MINIUPNPD") + local ipt = io.popen("iptables --line-numbers -t nat -xnvL MINIUPNPD 2>/dev/null") if ipt then local fwd = { } while true do -- 2.11.0