From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Schwarzott Date: Sat, 13 Oct 2007 13:37:17 +0000 Subject: Remove hardcoded path to logger Message-Id: <200710131537.18510.zzam@gentoo.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="Boundary-00=_OoMEHjU6FwdlOe/" List-Id: To: linux-hotplug@vger.kernel.org --Boundary-00=_OoMEHjU6FwdlOe/ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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) --Boundary-00=_OoMEHjU6FwdlOe/ Content-Type: text/x-diff; charset="utf-8"; name="udev-115-path-to-logger.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="udev-115-path-to-logger.diff" 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 } --Boundary-00=_OoMEHjU6FwdlOe/ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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/ --Boundary-00=_OoMEHjU6FwdlOe/ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --Boundary-00=_OoMEHjU6FwdlOe/--