chiark / gitweb /
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 89b985e..49845ba 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
 }