Again, as I changed my e-mail

--
Christian - Grenoble
=======================================
Scott,

I got a similar situation with my system which is a laptop with two PCMCIA
Ethernet cards.
To solve this race condition problem (initialisation of the PCMCIA cards not
done before dhcp and
other daemons are launched) I modified pcmcia.lrp scripts as follows:

----------------
/etc/init.d/pcmcia:

RCDLINKS="S,S38 2,S13 3,S13 4,S13 5,S13 6,K87"
----------------

and added Erich's script in pcmcia.lrp  with slight adjustements

--------------
/etc/init.d/pcmcia_eth:

#!/bin/sh
#
# Copyleft 2002 Erich Titl ([EMAIL PROTECTED])
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# Purpose:
# Wait for PCMCIA Ethernet cards to be ready.
# Executed following pcmcia init script execution

RCDLINKS="S,S38 2,S13 3,S13 4,S13 5,S13"
WHAT="eth"                           # what to search for
WHERE="/proc/net/dev"          # where to search
HOW_LONG=20                     # how long in seconds before aborting

NICS=`grep ${WHAT} /etc/shorewall/interfaces | grep -v ^# | wc -l`
[ ! -r /etc/shorewall/interfaces ] && NICS=2;
count=0
while true
do
  count=`expr $count + 1`
# weird, for some reason grep does not return anything sensible
  devs=`grep ${WHAT} ${WHERE} | wc -l`
   [ $count -eq ${HOW_LONG} -o $devs -eq ${NICS} ] && break;
  sleep 1
 done
exit 0

--------------------
which means that pcmcia initialization is done earlier in the boot process
(S,S38) and
init waits for the initialization of the Ethernet devices before proceeding
to rest of boot sequence.

Hope this will help

 --
Christian - Grenoble





-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to