1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[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
This commit is contained in:
jow
2010-09-16 11:47:35 +00:00
parent c18e77fd34
commit 6ce96a49f3
4 changed files with 12 additions and 10 deletions

View File

@@ -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 "$@"
}