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:
@@ -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 "$@"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user