X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=components%2F9990-select-eth-device.sh;h=c8f36b05067109e7f051533d09831ecee4f80628;hb=683095685ccdd4175b75293540aabe239d03a6bb;hp=df006662236e5a435276bdcd4ab6d2ee1300c72c;hpb=9ab5aeeecac939f82c77536a6e21b505d9841b96;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 ]