]> err.no Git - systemd/commitdiff
firmware: remove hardcoded path to logger
authorMatthias Schwarzott <zzam@gentoo.org>
Mon, 15 Oct 2007 22:50:48 +0000 (00:50 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 15 Oct 2007 22:50:48 +0000 (00:50 +0200)
extras/firmware/firmware.sh

index 89b985ef3b59042b0e839b933f6edffd855fd158..49845bad0f13e1766cb3b69589ef2c911721568a 100755 (executable)
@@ -4,8 +4,8 @@ FIRMWARE_DIRS="/lib/firmware /usr/local/lib/firmware"
 
 err() {
     echo "$@" >&2
-    if [ -x /bin/logger ]; then
-       /bin/logger -t "${0##*/}[$$]" "$@"
+    if type logger >/dev/null; then
+       logger -t "${0##*/}[$$]" "$@"
     fi
 }