From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Date: Fri, 06 Jun 2003 17:46:32 +0000 Subject: [PATCH] dynamic logger binary Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi, we have the logger in /bin ... log also the pid to tracing. Index: etc/hotplug/hotplug.functions =================================RCS file: /cvsroot/linux-hotplug/admin/etc/hotplug/hotplug.functions,v retrieving revision 1.17 diff -u -r1.17 hotplug.functions --- etc/hotplug/hotplug.functions 3 Dec 2002 02:24:03 -0000 1.17 +++ etc/hotplug/hotplug.functions 6 Jun 2003 13:49:07 -0000 @@ -22,16 +21,23 @@ . /etc/sysconfig/hotplug fi +if [ -x /usr/bin/logger ]; then + LOGGER=/usr/bin/logger +elif [ -x /bin/logger ]; then + LOGGER=/bin/logger +else + unset LOGGER +fi # # for diagnostics # -if [ -t -o ! -x /usr/bin/logger ]; then +if [ -t -o -z "$LOGGER" ]; then mesg () { echo "$@" } else mesg () { - /usr/bin/logger -t $(basename $0) "$@" + $LOGGER -t $(basename $0)"[$$]" "$@" } fi -- USB is for mice, FireWire is for men! ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.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