linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Remove hardcoded path to logger
@ 2007-10-13 13:37 Matthias Schwarzott
  2007-10-15 13:32 ` Harald Hoyer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Matthias Schwarzott @ 2007-10-13 13:37 UTC (permalink / raw)
  To: linux-hotplug

[-- 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: Remove hardcoded path to logger
  2007-10-13 13:37 Remove hardcoded path to logger Matthias Schwarzott
@ 2007-10-15 13:32 ` Harald Hoyer
  2007-10-15 13:43 ` Robby Workman
  2007-10-16 18:12 ` Kay Sievers
  2 siblings, 0 replies; 4+ messages in thread
From: Harald Hoyer @ 2007-10-15 13:32 UTC (permalink / raw)
  To: linux-hotplug

Matthias Schwarzott wrote:
> Hi there!
> 
> This patch removes the hardcoded path to logger from firmware.sh
> 
> At least gentoo installs logger to /usr/bin
> 
> Matthias

+1

Fedora / Red Hat also has logger in /usr/bin

-------------------------------------------------------------------------
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/
_______________________________________________
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Remove hardcoded path to logger
  2007-10-13 13:37 Remove hardcoded path to logger Matthias Schwarzott
  2007-10-15 13:32 ` Harald Hoyer
@ 2007-10-15 13:43 ` Robby Workman
  2007-10-16 18:12 ` Kay Sievers
  2 siblings, 0 replies; 4+ messages in thread
From: Robby Workman @ 2007-10-15 13:43 UTC (permalink / raw)
  To: linux-hotplug

Harald Hoyer wrote:
> Matthias Schwarzott wrote:
>> Hi there!
>>
>> This patch removes the hardcoded path to logger from firmware.sh
>>
>> At least gentoo installs logger to /usr/bin
>>
>> Matthias
> 
> +1
> 
> Fedora / Red Hat also has logger in /usr/bin


Slackware also.

-RW

-------------------------------------------------------------------------
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/
_______________________________________________
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Remove hardcoded path to logger
  2007-10-13 13:37 Remove hardcoded path to logger Matthias Schwarzott
  2007-10-15 13:32 ` Harald Hoyer
  2007-10-15 13:43 ` Robby Workman
@ 2007-10-16 18:12 ` Kay Sievers
  2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2007-10-16 18:12 UTC (permalink / raw)
  To: linux-hotplug

On 10/13/07, Matthias Schwarzott <zzam@gentoo.org> wrote:
> This patch removes the hardcoded path to logger from firmware.sh
>
> At least gentoo installs logger to /usr/bin

Applied.

Thanks,
Kay

-------------------------------------------------------------------------
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/
_______________________________________________
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-16 18:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-13 13:37 Remove hardcoded path to logger Matthias Schwarzott
2007-10-15 13:32 ` Harald Hoyer
2007-10-15 13:43 ` Robby Workman
2007-10-16 18:12 ` Kay Sievers

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).