clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 29b247c 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
|
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
|
---|
14 | if [ -x /usr/bin/logger ]; then
|
---|
15 | LOGGER=/usr/bin/logger
|
---|
16 | elif [ -x /bin/logger ]; then
|
---|
17 | LOGGER=/bin/logger
|
---|
18 | else
|
---|
19 | unset LOGGER
|
---|
20 | fi
|
---|
21 |
|
---|
22 | # Output Routine
|
---|
23 | if [ -t 1 -o -z "$LOGGER" ]; then
|
---|
24 | mesg () {
|
---|
25 | echo "$@"
|
---|
26 | }
|
---|
27 | else
|
---|
28 | mesg () {
|
---|
29 | $LOGGER -t $(basename $0)"[$$]" "$@"
|
---|
30 | }
|
---|
31 | fi
|
---|
32 |
|
---|
33 | debug_mesg () {
|
---|
34 | test "$DEBUG" = "" -o "$DEBUG" = no && return
|
---|
35 | mesg "$@"
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.