On Sun, 2002-09-29 at 02:48, Richard Tango-Lowy wrote:
> 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.

Hi Rich
Glad it solved your pbm ;)
Although it's not a proper fix and I'm sure this portion of code works
for some people.
Hopefully one of the many talented developers at MandrakeSoft will pick
it up and solve it properly ;)

 
> 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
-- 
                          \|||/
                         ( / \ )
                        (  O O  )
______________________oOOo-( )-oOOo__________________________________
 Frederic P. Soulier           [EMAIL PROTECTED]
 OpenPGP key available on http://www.keyserver.net
 1024D/BA6700ED   49A6 8E8E 4230 8D41 1ADE  B649 3203 1DD2 BA67 00ED
 Linux Mandrake / Current Linux kernel 2.4.19-16mdksmp
______________________________Oooo___________________________________
                        oooO  (   )
                       (   )   ) /
                        \ (   (_/
                         \_)


Reply via email to