Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/etc/rc.subr,v rcsdiff: /ftp/cvs/cvsroot/src/etc/rc.subr,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.49 retrieving revision 1.49.2.2 diff -u -p -r1.49 -r1.49.2.2 --- src/etc/rc.subr 2002/05/21 12:31:01 1.49 +++ src/etc/rc.subr 2002/11/24 15:42:37 1.49.2.2 @@ -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.2 2002/11/24 15:42:37 tron Exp $ # # Copyright (c) 1997-2002 The NetBSD Foundation, Inc. # All rights reserved. @@ -62,7 +62,7 @@ checkyesno() return 1 ;; *) - warn "\$${1} is not set properly." + warn "\$${1} is not set properly - see rc.conf(5)." return 1 ;; esac @@ -754,7 +754,9 @@ err() 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 @@ err() # warn() { - logger "$0: WARNING: $*" + if [ -x /usr/bin/logger ]; then + logger "$0: WARNING: $*" + fi echo 1>&2 "$0: WARNING: $*" }