From: Jo-Philipp Wich Date: Sat, 28 Feb 2015 18:05:42 +0000 (+0100) Subject: luci-app-upnp: supress stderr when listing MINIUPNPD chain X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cf4b89b06be6d6191965e18517a39f870aa5e729;p=project%2Fluci.git 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 --- diff --git a/applications/luci-app-upnp/luasrc/controller/upnp.lua b/applications/luci-app-upnp/luasrc/controller/upnp.lua index 8fc697fd6a..790bf29d8c 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