Skip to contentSkip to conversation

Remove hardcoded path to logger

PATCH Applied Matthias Schwarzott 4 participants 4 messages Oct 13, 2007 – Oct 16, 2007

lore
Share & tools
lore
#0 lore raw

Hi there!

This patch removes the hardcoded path to logger from firmware.sh

At least gentoo installs logger to /usr/bin

Matthias

Signature · 1 line
Matthias Schwarzott (zzam)
extras/firmware/firmware.sh +2 -2
index 89b985e..49845ba 100755
@@ -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
 }
 

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 7 lines · Matthias Schwarzott

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Matthias Schwarzott
Quoted 5 lines · Harald Hoyer
Quoted 4 lines · Matthias Schwarzott

Hi there!

This patch removes the hardcoded path to logger from firmware.sh

Quoted 7 lines
Quoted 3 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

Applied
#3 lore raw
In reply to Matthias Schwarzott
Quoted 3 lines · Matthias Schwarzott

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel