Deleted Added
full compact
rc.subr (175676) rc.subr (178770)
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 175676 2008-01-26 11:22:12Z mtm $
2# $FreeBSD: head/etc/rc.subr 178770 2008-05-05 07:43:48Z mtm $
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

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

166# If booting directly to multiuser or $always is enabled,
167# send SIGTERM to the parent (/etc/rc) to abort the boot.
168# Otherwise just exit.
169#
170stop_boot()
171{
172 local always
173
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

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

166# If booting directly to multiuser or $always is enabled,
167# send SIGTERM to the parent (/etc/rc) to abort the boot.
168# Otherwise just exit.
169#
170stop_boot()
171{
172 local always
173
174 if [ -n "$1" ] && checkyesno $1; then
174 case $1 in
175 # "yes", "true", "on", or "1"
176 [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
175 always=true
177 always=true
176 else
178 ;;
179 *)
177 always=false
180 always=false
181 ;;
178 fi
179 if [ "$autoboot" = yes -o "$always" = true ]; then
180 echo "ERROR: ABORTING BOOT (sending SIGTERM to parent)!"
181 kill -TERM ${RC_PID}
182 fi
183 exit 1
184}
185

--- 1398 unchanged lines hidden ---
182 fi
183 if [ "$autoboot" = yes -o "$always" = true ]; then
184 echo "ERROR: ABORTING BOOT (sending SIGTERM to parent)!"
185 kill -TERM ${RC_PID}
186 fi
187 exit 1
188}
189

--- 1398 unchanged lines hidden ---