rc.subr (178775) | rc.subr (178776) |
---|---|
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 178775 2008-05-05 15:50:20Z maxim $ | 2# $FreeBSD: head/etc/rc.subr 178776 2008-05-05 15:52:54Z maxim $ |
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 case $1 in 175 # "yes", "true", "on", or "1" | 174 case $1 in 175 # "yes", "true", "on", or "1" |
176 [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) 177 always=true 178 ;; 179 *) 180 always=false 181 ;; 182 esac 183 if [ "$autoboot" = yes -o "$always" = true ]; then --- 1404 unchanged lines hidden --- | 176 [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) 177 always=true 178 ;; 179 *) 180 always=false 181 ;; 182 esac 183 if [ "$autoboot" = yes -o "$always" = true ]; then --- 1404 unchanged lines hidden --- |