source: udev/contrib/common/helper.functions@ a5b013ba

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since a5b013ba was 9f9eb08, checked in by Jim Gifford <clfs@…>, 19 years ago

r1093@server (orig r1091): jim | 2006-01-22 11:22:15 -0800

r1099@server: jim | 2006-01-22 11:11:24 -0800
Removed blank lines


  • Property mode set to 100644
File size: 614 bytes
RevLine 
[615dd64]1########################################################################
2#
3# Description : helper.functions
4#
5# Authors : Jim Gifford
6#
7# Version : 00.00
8#
9# Notes :
10#
11########################################################################
12
13# Find Logger
14if [ -x /usr/bin/logger ]; then
15 LOGGER=/usr/bin/logger
16elif [ -x /bin/logger ]; then
17 LOGGER=/bin/logger
18else
19 unset LOGGER
20fi
21
22# Output Routine
23if [ -t 1 -o -z "$LOGGER" ]; then
24 mesg () {
25 echo "$@"
26 }
27else
28 mesg () {
29 $LOGGER -t $(basename $0)"[$$]" "$@"
30 }
31fi
32
33debug_mesg () {
34 test "$DEBUG" = "" -o "$DEBUG" = no && return
35 mesg "$@"
36}
Note: See TracBrowser for help on using the repository browser.