Fixed bug with wlan initialization in new kernels which do not provide anymore
[hvlinux.git] / stage2 / bootscripts / ifup
index dd2683b..6af859a 100755 (executable)
@@ -37,7 +37,7 @@ bring_if_up()
     fi
 
     # Check if a cable is plugged for wired interface
-    if [ ! -d /sys/class/net/${DEVICE}/wireless ]; then
+    if echo "${DEVICE}" | grep -q "eth" ; then
         count=0
         while cat /sys/class/net/${DEVICE}/carrier | grep -q "0"; do
             echo "Waiting for carrier to go up"