summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/fsck
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2007-05-18 12:04:41 +0000
committermtm <mtm@FreeBSD.org>2007-05-18 12:04:41 +0000
commit6d5baaa0915889111c959912b06a8315052876c5 (patch)
tree6358eeee7fccccd9b0299bd803dcf2ec18d52606 /etc/rc.d/fsck
parente1996cb9609d2e55a26ee78dddbfce4ba4073b53 (diff)
downloadFreeBSD-src-6d5baaa0915889111c959912b06a8315052876c5.zip
FreeBSD-src-6d5baaa0915889111c959912b06a8315052876c5.tar.gz
o Implement the stop_boot subroutine [1]. This subroutine can be used by
scripts in rc.d to stop rc(8) from booting into multi-user mode when a critical or severe error condition is encountered. o Modify scripts in etc/rc.d that already implemented this functionality independently. o Document it. [1] - This subroutine was implemented in FreeBSD in rc.d/fsck. I moved it to rc.subr(8). Our version differs slightly in that it takes an optional argument to stop the boot even if "autoboot" is not set. Obtained from: NetBSD MFC after: 2 weeks
Diffstat (limited to 'etc/rc.d/fsck')
-rwxr-xr-xetc/rc.d/fsck11
1 files changed, 0 insertions, 11 deletions
diff --git a/etc/rc.d/fsck b/etc/rc.d/fsck
index 7d329d2..0bc7b08 100755
--- a/etc/rc.d/fsck
+++ b/etc/rc.d/fsck
@@ -14,17 +14,6 @@ name="fsck"
start_cmd="fsck_start"
stop_cmd=":"
-stop_boot()
-{
- # Terminate the process (which may include the parent /etc/rc)
- # if booting directly to multiuser mode.
- #
- if [ "$autoboot" = yes ]; then
- kill -TERM $$
- fi
- exit 1
-}
-
fsck_start()
{
if [ "$autoboot" = no ]; then
OpenPOWER on IntegriCloud