Deleted Added
full compact
rc.subr (126285) rc.subr (126286)
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 126285 2004-02-26 12:19:48Z mtm $
2# $FreeBSD: head/etc/rc.subr 126286 2004-02-26 12:30:38Z mtm $
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

--- 130 unchanged lines hidden (view full) ---

141}
142
143# reverse_list list
144# print the list in reverse order
145#
146reverse_list()
147{
148 _revlist=
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

--- 130 unchanged lines hidden (view full) ---

141}
142
143# reverse_list list
144# print the list in reverse order
145#
146reverse_list()
147{
148 _revlist=
149 for _revfile in $*; do
149 for _revfile; do
150 _revlist="$_revfile $_revlist"
151 done
152 echo $_revlist
153}
154
155#
156# mount_critical_filesystems type
157# Go through the list of critical filesystems as provided in

--- 126 unchanged lines hidden (view full) ---

284}
285
286#
287# wait_for_pids pid [pid ...]
288# spins until none of the pids exist
289#
290wait_for_pids()
291{
150 _revlist="$_revfile $_revlist"
151 done
152 echo $_revlist
153}
154
155#
156# mount_critical_filesystems type
157# Go through the list of critical filesystems as provided in

--- 126 unchanged lines hidden (view full) ---

284}
285
286#
287# wait_for_pids pid [pid ...]
288# spins until none of the pids exist
289#
290wait_for_pids()
291{
292 _list=$*
292 _list="$@"
293 if [ -z "$_list" ]; then
294 return
295 fi
296 _prefix=
297 while true; do
298 _nlist="";
299 for _j in $_list; do
300 if kill -0 $_j 2>/dev/null; then

--- 582 unchanged lines hidden (view full) ---

883# Print a usage string for $0, with `commands' being a list of
884# valid commands.
885#
886rc_usage()
887{
888 echo -n 1>&2 "Usage: $0 [fast|force]("
889
890 _sep=
293 if [ -z "$_list" ]; then
294 return
295 fi
296 _prefix=
297 while true; do
298 _nlist="";
299 for _j in $_list; do
300 if kill -0 $_j 2>/dev/null; then

--- 582 unchanged lines hidden (view full) ---

883# Print a usage string for $0, with `commands' being a list of
884# valid commands.
885#
886rc_usage()
887{
888 echo -n 1>&2 "Usage: $0 [fast|force]("
889
890 _sep=
891 for _elem in $*; do
891 for _elem; do
892 echo -n 1>&2 "$_sep$_elem"
893 _sep="|"
894 done
895 echo 1>&2 ")"
896 exit 1
897}
898
899#

--- 366 unchanged lines hidden ---
892 echo -n 1>&2 "$_sep$_elem"
893 _sep="|"
894 done
895 echo 1>&2 ")"
896 exit 1
897}
898
899#

--- 366 unchanged lines hidden ---