rc.subr (161530) | rc.subr (162947) |
---|---|
1# $NetBSD: rc.subr,v 1.66 2006/04/01 10:05:50 he Exp $ | 1# $NetBSD: rc.subr,v 1.66 2006/04/01 10:05:50 he Exp $ |
2# $FreeBSD: head/etc/rc.subr 161530 2006-08-22 11:17:29Z flz $ | 2# $FreeBSD: head/etc/rc.subr 162947 2006-10-02 08:20:37Z yar $ |
3# 4# Copyright (c) 1997-2004 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 --- 992 unchanged lines hidden (view full) --- 1003# BEWARE that you don't call any subroutine that itself calls this 1004# function. 1005# 1006debug() 1007{ 1008 case ${rc_debug} in 1009 [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) 1010 if [ -x /usr/bin/logger ]; then | 3# 4# Copyright (c) 1997-2004 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 --- 992 unchanged lines hidden (view full) --- 1003# BEWARE that you don't call any subroutine that itself calls this 1004# function. 1005# 1006debug() 1007{ 1008 case ${rc_debug} in 1009 [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) 1010 if [ -x /usr/bin/logger ]; then |
1011 logger "$0: INFO: $*" | 1011 logger "$0: DEBUG: $*" |
1012 fi 1013 echo 1>&2 "$0: DEBUG: $*" 1014 ;; 1015 esac 1016} 1017 1018# 1019# backup_file action file cur backup --- 472 unchanged lines hidden --- | 1012 fi 1013 echo 1>&2 "$0: DEBUG: $*" 1014 ;; 1015 esac 1016} 1017 1018# 1019# backup_file action file cur backup --- 472 unchanged lines hidden --- |