Deleted Added
full compact
rc.subr (153027) rc.subr (153105)
1# $NetBSD: rc.subr,v 1.60 2003/07/26 05:13:47 lukem Exp $
1# $NetBSD: rc.subr,v 1.60 2003/07/26 05:13:47 lukem Exp $
2# $FreeBSD: head/etc/rc.subr 153027 2005-12-02 20:06:07Z dougb $
2# $FreeBSD: head/etc/rc.subr 153105 2005-12-05 07:04:15Z dougb $
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

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

827 fi
828
829 unset name command command_args command_interpreter \
830 extra_commands pidfile procname \
831 rcvar required_dirs required_files required_vars
832 eval unset ${_arg}_cmd ${_arg}_precmd ${_arg}_postcmd
833
834 case "$_file" in
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

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

827 fi
828
829 unset name command command_args command_interpreter \
830 extra_commands pidfile procname \
831 rcvar required_dirs required_files required_vars
832 eval unset ${_arg}_cmd ${_arg}_precmd ${_arg}_postcmd
833
834 case "$_file" in
835 *.sh) # run in current shell
835 /etc/rc.d/*.sh) # run in current shell
836 set $_arg; . $_file
837 ;;
836 set $_arg; . $_file
837 ;;
838 *[~#]|*.OLD|*.orig|*,v) # scratch file; skip
838 *[~#]|*.OLD|*.bak|*.orig|*,v) # scratch file; skip
839 warn "Ignoring scratch file $_file"
840 ;;
841 *) # run in subshell
842 if [ -x $_file ]; then
843 if [ -n "$rc_fast_and_loose" ]; then
844 set $_arg; . $_file
845 else
846 ( trap "echo Script $_file interrupted; kill -QUIT $$" 3

--- 550 unchanged lines hidden ---
839 warn "Ignoring scratch file $_file"
840 ;;
841 *) # run in subshell
842 if [ -x $_file ]; then
843 if [ -n "$rc_fast_and_loose" ]; then
844 set $_arg; . $_file
845 else
846 ( trap "echo Script $_file interrupted; kill -QUIT $$" 3

--- 550 unchanged lines hidden ---