diff options
author | Manuel Munz <freifunk@somakoma.de> | 2013-10-17 00:22:55 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2013-10-17 00:22:55 +0000 |
commit | 5cfabc7eb2596215aa150bbff51a35289da30835 (patch) | |
tree | 7a1c8c6334b6e37cab0456c8b1eb92ce519c8e5c /applications/luci-splash | |
parent | 0678fe5eeb2827508858b7ca6509cf8447db4484 (diff) |
applications/luci-splash: Make luci-splash more silent in normal mode in case of tc/iptables errors
Diffstat (limited to 'applications/luci-splash')
-rwxr-xr-x | applications/luci-splash/root/usr/sbin/luci-splash | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/applications/luci-splash/root/usr/sbin/luci-splash b/applications/luci-splash/root/usr/sbin/luci-splash index 5051d60b7..4239b2d83 100755 --- a/applications/luci-splash/root/usr/sbin/luci-splash +++ b/applications/luci-splash/root/usr/sbin/luci-splash @@ -13,7 +13,7 @@ local net = sys.net local fs = require "luci.fs" local ip = require "luci.ip" -local debug = true +local debug = false local has_ipv6 = fs.access("/proc/net/ipv6_route") and fs.access("/usr/sbin/ip6tables") @@ -26,12 +26,14 @@ function unlock() end function exec(cmd) - local ret = sys.exec(cmd) if debug then + local ret = sys.exec(cmd) print('+ ' .. cmd) if ret and ret ~= "" then print(ret) end + else + local ret = sys.exec(cmd .. " &> /dev/null") end end |