uClibc: fix version check for 0.9.32
[openwrt.git] / package / firewall / files / lib / core.sh
index c350e8f..c383597 100644 (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 "$@"
 }
 
This page took 0.022688 seconds and 4 git commands to generate.