On Fri, 2005-05-06 at 23:30 -0600, Archaic wrote:
> On Fri, May 06, 2005 at 11:13:16PM -0600, Dennis J Perkins wrote:
> > I didn't like the network scripts, especially the ifconfig.* directory
> > structure.
> 
> <..>
> 
> > I would like the network scripts to be modular,
> 
> <..>
> 
> Without a directory with conf files in it, how would you achieve
> modularity? Seems like a contradiction.

I think a single conf file per interface should be sufficient.  The
scripts would be modular, e.g., dhcp, wireless.  If WIRELESS is set, the
wireless script is called and it used parameters from the conf file.  

> <snip what appear to be Jim's scripts>

Could be.  That name sounds right.

> I was not asking for support for wireless. I was asking for ideas as to
> how to make the lfs-bootscripts better, but thanks for your input.


I've been reading the LFS bootscripts this week,  adding a few comments
to help me remember what is happening.   Overall, I am impressed with
them. Part of the rc script did puzzle me for a time.  I didn't
understand 

    [ -f ${prev:_start} ] && [ ! -f ${stop} ] && continue

until I realized that it is checking to see if a daemon was started in
the previous runlevel and not stopped in the new run level.  If so, it
is not restarted.  A good check, I suppose, but how often would a
runlevel stop and start the same daemon?  

Why not say 
           [ -f $prev_start  -a  ! -f $stop ] && continue 
instead? Not that there is much difference between the two.

The fact that runlevels 0 and 6 have S and K files surprised me.  When I
read rc, I understood why.  I'm not sure I like this behavior because
despite the S prefix, the daemon is actually being stopped.  Maybe a
rcsyshalt directory that is called after processing rc0 and rc6?  Not
sure that feels right either.


I did modify the network script to let me specify which interface(s) to
start or stop.  If I say "network start", it starts the entire network.
If I say "network start eth0", it only starts eth0.  Not sure if this is
useful for others since you can always say ifup eth0.

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to