Subject: Re: ^C in fsck (segue from tech-kern)
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: None <tlaronde@polynum.com>
List: tech-userlevel
Date: 04/04/2007 22:31:24
On Wed, Apr 04, 2007 at 04:09:55PM -0400, der Mouse wrote:
> 
> Okay, so it's supposed to work in 3.1; I'll work on figuring out why it
> doesn't.  Offhand, it looks as though stop_boot just kills the shell
> running the fsck script, not the shell running /etc/rc - I suspect it
> might work if I set rc_fast_and_loose.
> 
> I'll dig around some more after work, when I'm at home with my 3.1
> machines.

Take it with a grain of salt, but after looking at the rc.d stuff,
every rc.d script that doesn't end in ".sh" is sourced in a subshell, 
but a script ending in ".sh" is sourced directly into the current shell.

So appending ".sh" to the rc.d/fsck script should achieve what you are
looking for, if I understand correctly (man 8 rc.d).

Cheers,
-- 
Thierry Laronde (Alceste) <tlaronde +AT+ polynum +dot+ com>
                 http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C