[Bug 35] rc and rcS file may need updating

Gerard Beekmans gerard at linuxfromscratch.org
Fri May 11 20:29:40 PDT 2001

> But now S* matches anything, so you could write your symlink as S20script and 
> this one would come before S100script, since it is lexically higher. Bash's 

I'm aware of that when I made the change. I made the change assuming
that people will just use 3 digit links and all will be ok. I am going
to fix it up to force three digit scripts and have 'rc' bitch when it
encounters a link that doesn't conform to the standard S, followed by
3 digits, followed by a name, and the link has to point to an existing
file as well (right now it just ignores it which is bad - how are you
supposed to debug that properly).

> for loops do not sort numerically (and even if they did, they couldn't, 
> because S is the first character), so we need to fix that up. There are two 
> solutions, because we clearly can't keep the S* pattern:

Agreed, but I did it just because rc does it. I want the two scripts to
be the same format. By the way, I want to just get rid of two scripts if
possible and see if we can't just make it one rc script that does both

rc 0-6 do runlevels 0-6 stuff. How about "rc sysinit" or "rc init" or
something similar that goes into the same loop that rcS does now as a
seperate script. How does that sound? I'll write to lfs-discuss before I
actually make that change so that others can give their input.
> This is all nice unless you somehow decide to use two numbers instead of 
> three, for example. The script does not enforce three numbers only, as 
> explained above.

I will put a note in pre3 that three digits have to be used else you'll
get unexpected results. pre3 is going out tomorrow, there's no time to
write a new script and test it thoroughly. There's always pre4 ;)

Gerard Beekmans

-*- If Linux doesn't have the solution, you have the wrong problem -*-

More information about the lfs-book mailing list