rc.subr (229783) | rc.subr (229822) |
---|---|
1# $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $ | 1# $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $ |
2# $FreeBSD: head/etc/rc.subr 229783 2012-01-07 16:10:32Z uqs $ | 2# $FreeBSD: head/etc/rc.subr 229822 2012-01-08 20:25:29Z dougb $ |
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 --- 16 unchanged lines hidden (view full) --- 27# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29# POSSIBILITY OF SUCH DAMAGE. 30# 31# rc.subr 32# functions used by various rc scripts 33# 34 | 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 --- 16 unchanged lines hidden (view full) --- 27# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29# POSSIBILITY OF SUCH DAMAGE. 30# 31# rc.subr 32# functions used by various rc scripts 33# 34 |
35: ${rcvar_manpage:='rc.conf(5)'} | |
36: ${RC_PID:=$$}; export RC_PID 37 38# 39# Operating System dependent/independent variables 40# 41 42if [ -z "${_rc_subr_loaded}" ]; then 43 --- 103 unchanged lines hidden (view full) --- 147 return 0 148 ;; 149 150 # "no", "false", "off", or "0" 151 [Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0) 152 return 1 153 ;; 154 *) | 35: ${RC_PID:=$$}; export RC_PID 36 37# 38# Operating System dependent/independent variables 39# 40 41if [ -z "${_rc_subr_loaded}" ]; then 42 --- 103 unchanged lines hidden (view full) --- 146 return 0 147 ;; 148 149 # "no", "false", "off", or "0" 150 [Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0) 151 return 1 152 ;; 153 *) |
155 warn "\$${1} is not set properly - see ${rcvar_manpage}." | 154 warn "\$${1} is not set properly - see rc.conf(5)." |
156 return 1 157 ;; 158 esac 159} 160 161# 162# reverse_list list 163# print the list in reverse order --- 1615 unchanged lines hidden --- | 155 return 1 156 ;; 157 esac 158} 159 160# 161# reverse_list list 162# print the list in reverse order --- 1615 unchanged lines hidden --- |