Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/etc Pull up revision 1.51 (requested by grant in ticket...
details: https://anonhg.NetBSD.org/src/rev/5e40c16415c1
branches: netbsd-1-6
changeset: 528618:5e40c16415c1
user: lukem <lukem%NetBSD.org@localhost>
date: Mon Jul 29 14:44:01 2002 +0000
description:
Pull up revision 1.51 (requested by grant in ticket #551):
add test for /usr/bin/logger in warn/err.
diffstat:
etc/rc.subr | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 66e4e6942e23 -r 5e40c16415c1 etc/rc.subr
--- a/etc/rc.subr Mon Jul 29 14:42:10 2002 +0000
+++ b/etc/rc.subr Mon Jul 29 14:44:01 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rc.subr,v 1.49 2002/05/21 12:31:01 lukem Exp $
+# $NetBSD: rc.subr,v 1.49.2.1 2002/07/29 14:44:01 lukem Exp $
#
# Copyright (c) 1997-2002 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -754,7 +754,9 @@
exitval=$1
shift
- logger "$0: ERROR: $*"
+ if [ -x /usr/bin/logger ]; then
+ logger "$0: ERROR: $*"
+ fi
echo 1>&2 "$0: ERROR: $*"
exit $exitval
}
@@ -765,7 +767,9 @@
#
warn()
{
- logger "$0: WARNING: $*"
+ if [ -x /usr/bin/logger ]; then
+ logger "$0: WARNING: $*"
+ fi
echo 1>&2 "$0: WARNING: $*"
}
Home |
Main Index |
Thread Index |
Old Index