summaryrefslogtreecommitdiffstats
path: root/package/firewall/files/lib/core.sh
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-09-16 11:47:35 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-09-16 11:47:35 +0000
commit6ce96a49f3d83920be541b78bc68fb822de43c88 (patch)
treebe373438e3db825da9a083b4d1004308605f1855 /package/firewall/files/lib/core.sh
parentc18e77fd345fcede79e68a58e3d0f99ded084338 (diff)
[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
Diffstat (limited to 'package/firewall/files/lib/core.sh')
-rw-r--r--package/firewall/files/lib/core.sh6
1 files changed, 2 insertions, 4 deletions
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 "$@"
}