Frederic,

Thanks for the debug work. I commented out the lines you suggested and
it fixed the DHCP problem I've been having since beta1.

check_link_down() in network-functions is

check_link_down ()
{
    if [ -x /sbin/mii-tool ]; then
       LC_ALL=C ip link show $1 2>/dev/null| grep -q UP || ip link set
$1 up >/dev/null 2>&1

       # wait for link to come up
       sleep 5
       mii-tool >/dev/null 2>&1 || return 1

       for (( try=0; try<10; try++ ))
       do
           sleep 1
           if LC_ALL=C mii-tool $LINK $1 2>&1 | grep -vqs "no link";
then
               return 1
           fi
        done
    fi
    return 0
}

For some reason, (to state the obvious,) it's always failing.

Rich

On Sat, 2002-09-28 at 06:53, Frederic Soulier wrote:
    Hi
    
    I installed LM9.0 yesterday on a box with 1 NIC (eth0). I selected
    Dynamic IP Address at boot. At the 1st reboot after install eth0 would
    not come up:
    
    msg displayed:
    Determining IP information for eth0... failed; no link present.  Check
    cable?
    
    That surprised me as it has always been working with previous version
    and it actually worked fine 2h before on 8.2. I checked the cable by
    plugging it to my laptop, no pbm.
    
    After investigation I found out that the following code in /sbin/ifup
    that calls the check_link_down in
    /etc/sysconfig/network-scripts/network-functions is the culprit...
    
    I commented it out and it's all ok now.
    
    if [ -n "$DYNCONFIG" ]; then
        echo -n $"Determining IP information for ${DEVICE}..."
    
    # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    # FRED: Check with MandrakeSoft was's wrong! Very Important
    # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    #    if check_link_down ${DEVICE}; then
    #   echo $" failed; no link present.  Check cable?"
    #   ip link set ${DEVICE} down >/dev/null 2>&1
    #   exit 1
    #    fi
    
        if $DHCP_CLIENT $DHCP_ARGS ; then
        echo $" done."
        else
        echo $" failed."
        exit 1
        fi
    
    
    So what's wrong?
    
    /Fred
    
-- 
ars Cognita   Richard Tango-Lowy
              ---------------------
              President
              [EMAIL PROTECTED]
              603 424-0713

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to