From 6ce96a49f3d83920be541b78bc68fb822de43c88 Mon Sep 17 00:00:00 2001 From: jow Date: Thu, 16 Sep 2010 11:47:35 +0000 Subject: [package] firewall: make invalid redirects and duplicate zones non-fatal, print a notice and discard them git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23080 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/firewall/files/lib/core.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'package/firewall/files/lib/core.sh') diff --git a/package/firewall/files/lib/core.sh b/package/firewall/files/lib/core.sh index c350e8f0f..c38359781 100644 --- a/package/firewall/files/lib/core.sh +++ b/package/firewall/files/lib/core.sh @@ -107,10 +107,8 @@ fw_die() { fw_log() { local level="$1" - [ -n "$2" ] || { - shift - level=notice - } + [ -n "$2" ] && shift || level=notice + [ "$level" != error ] || echo "Error: $@" >&2 logger -t firewall -p user.$level "$@" } -- cgit v1.2.3