source: udev/contrib/common/helper.functions@ 6c544b0

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 6c544b0 was 615dd64, checked in by Jim Gifford <clfs@…>, 19 years ago

r1030@server (orig r1028): jim | 2006-01-08 22:41:24 -0800

r1326@server: jim | 2006-01-08 22:41:02 -0800
Added: network helper


  • Property mode set to 100644
File size: 615 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}
37
Note: See TracBrowser for help on using the repository browser.