source: udev/contrib/common/helper.functions @ 9f9eb08

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 9f9eb08 was 9f9eb08, checked in by Jim Gifford <clfs@…>, 18 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
Line 
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.