From 2489338b2f31d630a9a93094c0920ec1f82f2476 Mon Sep 17 00:00:00 2001 From: gobo72 Date: Wed, 24 Oct 2012 00:38:36 +0000 Subject: [PATCH] Fixed bug with wlan initialization in new kernels which do not provide anymore the file: /sys/class/net/${DEVICE}/wireless to detect between wired and wireless interfaces. --- stage2/bootscripts/ifup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stage2/bootscripts/ifup b/stage2/bootscripts/ifup index dd2683b..6af859a 100755 --- a/stage2/bootscripts/ifup +++ b/stage2/bootscripts/ifup @@ -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" -- 2.20.1