Fixed bug with wlan initialization in new kernels which do not provide anymore
authorgobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Wed, 24 Oct 2012 00:38:36 +0000 (00:38 +0000)
committergobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Wed, 24 Oct 2012 00:38:36 +0000 (00:38 +0000)
the file:
  /sys/class/net/${DEVICE}/wireless
to detect between wired and wireless interfaces.

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"