Subversion Repositories livecd

Rev

Rev 149 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 149 Rev 150
Line 474... Line 474...
474
# network devices found ?
474
# network devices found ?
475
#
475
#
476
found_nic()
476
found_nic()
477
{
477
{
478
    found="1"
478
    found="1"
479
    PRINTK=`cat /proc/sys/kernel/printk`
-
 
480
    echo "0" >/proc/sys/kernel/printk
-
 
481
    for iface in eth0 eth1 eth2 eth3 eth4 eth5; do
479
    for iface in eth0 eth1 eth2 eth3 eth4 eth5; do
482
	# nic already found ?
480
	# nic already found ?
483
	echo $FOUND_IFACE | grep -q $iface 
481
	echo $FOUND_IFACE | grep -q $iface 
484
	if [ $? -ne 0 ]; then
482
	if [ $? -ne 0 ]; then
485
	    ifconfig $iface > /dev/null 2>&1
483
	    ifconfig $iface > /dev/null 2>&1
Line 487... Line 485...
487
		FOUND_IFACE="$FOUND_IFACE $iface"
485
		FOUND_IFACE="$FOUND_IFACE $iface"
488
		found="0"
486
		found="0"
489
	    fi
487
	    fi
490
	fi
488
	fi
491
    done
489
    done
492
    echo "$PRINTK" >/proc/sys/kernel/printk
-
 
493
    return $found
490
    return $found
494
}
491
}
495
 
492
 
496
# 1. load network driver defined by kernel parameter nic
493
# 1. load network driver defined by kernel parameter nic
497
#
494
#