Merge branch 'master' into 'master'
[live-boot-grml.git] / components / 9990-select-eth-device.sh
index df00666..09642c8 100755 (executable)
@@ -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 ]
@@ -91,7 +91,7 @@ Select_eth_device ()
                                        1)
                                                echo "Connected $interface found"
                                                # inform initrd's init script :
-                                               found_eth_dev="$found_eth_dev $interface"
+                                               found_eth_dev="$interface"
                                                ;;
                                esac
                        done