firmware: do not print error if logger is missing

This commit is contained in:
Kay Sievers 2007-10-16 00:54:14 +02:00
parent dab3fe36cf
commit 6e9edde6c9

View File

@ -4,9 +4,7 @@ FIRMWARE_DIRS="/lib/firmware /usr/local/lib/firmware"
err() {
echo "$@" >&2
if type logger >/dev/null; then
logger -t "${0##*/}[$$]" "$@"
fi
logger -t "${0##*/}[$$]" "$@" 2>/dev/null || true
}
if [ ! -e /sys$DEVPATH/loading ]; then