From 6d5baaa0915889111c959912b06a8315052876c5 Mon Sep 17 00:00:00 2001 From: mtm Date: Fri, 18 May 2007 12:04:41 +0000 Subject: 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 --- etc/rc.d/root | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/rc.d/root') diff --git a/etc/rc.d/root b/etc/rc.d/root index 35fd9bb..9c20b7b 100755 --- a/etc/rc.d/root +++ b/etc/rc.d/root @@ -25,7 +25,7 @@ root_start() *) if ! mount -uw /; then echo 'Mounting root filesystem rw failed, startup aborted' - /bin/kill -QUIT $$ + stop_boot true fi ;; esac -- cgit v1.1