X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=components%2F9990-select-eth-device.sh;h=c8f36b05067109e7f051533d09831ecee4f80628;hb=27bc786ffea0c796827b628fb48fcdd755eace9d;hp=df006662236e5a435276bdcd4ab6d2ee1300c72c;hpb=0ed42c4a3a98e506a5e8e8a6d40b632e572fa0b5;p=live-boot-grml.git diff --git a/components/9990-select-eth-device.sh b/components/9990-select-eth-device.sh index df00666..c8f36b0 100755 --- a/components/9990-select-eth-device.sh +++ b/components/9990-select-eth-device.sh @@ -39,7 +39,7 @@ Select_eth_device () echo "Waiting for ethernet card(s) up... If this fails, maybe the ethernet card is not supported by the kernel `uname -r`?" while [ -z "$l_interfaces" ] do - l_interfaces="$(cd /sys/class/net/ && ls -d eth* 2>/dev/null)" + l_interfaces="$(cd /sys/class/net/ && ls -d * 2>/dev/null | grep -v "lo")" done if [ $(echo $l_interfaces | wc -w) -lt 2 ]