rc.subr (106643) | rc.subr (106700) |
---|---|
1# $NetBSD: rc.subr,v 1.49 2002/05/21 12:31:01 lukem Exp $ | 1# $NetBSD: rc.subr,v 1.49 2002/05/21 12:31:01 lukem Exp $ |
2# $FreeBSD: head/etc/rc.subr 106643 2002-11-08 17:06:15Z gordon $ | 2# $FreeBSD: head/etc/rc.subr 106700 2002-11-09 17:34:21Z gordon $ |
3# 4# Copyright (c) 1997-2002 The NetBSD Foundation, Inc. 5# All rights reserved. 6# 7# This code is derived from software contributed to The NetBSD Foundation 8# by Luke Mewburn. 9# 10# Redistribution and use in source and binary forms, with or without --- 884 unchanged lines hidden (view full) --- 895# If debugging is enabled in rc.conf output message to stderr. 896# BEWARE that you don't call any subroutine that itself calls this 897# function. 898# 899debug() 900{ 901 case ${rc_debug} in 902 [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) | 3# 4# Copyright (c) 1997-2002 The NetBSD Foundation, Inc. 5# All rights reserved. 6# 7# This code is derived from software contributed to The NetBSD Foundation 8# by Luke Mewburn. 9# 10# Redistribution and use in source and binary forms, with or without --- 884 unchanged lines hidden (view full) --- 895# If debugging is enabled in rc.conf output message to stderr. 896# BEWARE that you don't call any subroutine that itself calls this 897# function. 898# 899debug() 900{ 901 case ${rc_debug} in 902 [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) |
903 if [ -x /usr/bin/logger ]; then 904 logger "$0: INFO: $*" 905 fi |
|
903 echo 1>&2 "$0: DEBUG: $*" | 906 echo 1>&2 "$0: DEBUG: $*" |
904 return | |
905 ;; 906 esac 907} 908 909# 910# backup_file action file cur backup 911# Make a backup copy of `file' into `cur', and save the previous 912# version of `cur' as `backup' or use rcs for archiving. --- 81 unchanged lines hidden --- | 907 ;; 908 esac 909} 910 911# 912# backup_file action file cur backup 913# Make a backup copy of `file' into `cur', and save the previous 914# version of `cur' as `backup' or use rcs for archiving. --- 81 unchanged lines hidden --- |