From: Matthias Schwarzott <zzam@gentoo.org>
To: linux-hotplug@vger.kernel.org
Subject: Remove hardcoded path to logger
Date: Sat, 13 Oct 2007 13:37:17 +0000 [thread overview]
Message-ID: <200710131537.18510.zzam@gentoo.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 163 bytes --]
Hi there!
This patch removes the hardcoded path to logger from firmware.sh
At least gentoo installs logger to /usr/bin
Matthias
--
Matthias Schwarzott (zzam)
[-- Attachment #2: udev-115-path-to-logger.diff --]
[-- Type: text/x-diff, Size: 421 bytes --]
diff --git a/extras/firmware/firmware.sh b/extras/firmware/firmware.sh
index 89b985e..49845ba 100755
--- a/extras/firmware/firmware.sh
+++ b/extras/firmware/firmware.sh
@@ -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
}
[-- Attachment #3: Type: text/plain, Size: 314 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
[-- Attachment #4: Type: text/plain, Size: 226 bytes --]
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next reply other threads:[~2007-10-13 13:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-13 13:37 Matthias Schwarzott [this message]
2007-10-15 13:32 ` Remove hardcoded path to logger Harald Hoyer
2007-10-15 13:43 ` Robby Workman
2007-10-16 18:12 ` Kay Sievers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200710131537.18510.zzam@gentoo.org \
--to=zzam@gentoo.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).