issue with $netdevices_up and squeeze

Thomas Lange lange at informatik.uni-koeln.de
Mon Dec 13 10:16:43 CET 2010


>>>>> On Sun, 12 Dec 2010 16:38:23 -0800, David Dreezer <dave at socialstrata.com> said:


    > In working through the upgrade to Squeeze however, this script is failing.  The problem is that with Squeeze $netdevices_up returns all devices except LO, up or not. 

    > 3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    >     link/ether 00:30:48:72:21:d7 brd ff:ff:ff:ff:ff:ff

    > As you can see device 3, eth1 has no cable plugged into it, thus NO-CARRIER and state DOWN but it is still returned.  On Lenny device 3, eth1 wouldn't be returned.

I guess it's initramfs-tools or live-boot which puts all NIC's into
status up. Then the command ip link show up return all those
interfaces, even if they have no carrier. So, we could sway it's a bug
of the ip command. Or we could additionally check
/sys/class/net/eth0/carrier

-- 
regards Thomas


More information about the linux-fai mailing list