Changeset 103

Show
Ignore:
Timestamp:
12/20/05 16:57:16 (3 years ago)
Author:
ludo
Message:

Find the eth interface registered in the LRS (from r2962)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/client/src_initrd/tree/etc/init.d/modutils

    r35 r103  
    2222        esac 
    2323                 
    24         echo -n "$module $args -
    25         insmod -s /lib/modules/"$module".ko $args >/dev/null 2>&1 
     24        echo -n " - $module $args
     25        insmod -s /lib/modules/"$module".ko $args >/dev/null 2>&1 || echo -n "*" 
    2626done 
    2727echo 
  • trunk/client/src_initrd/tree/etc/init.d/network

    r35 r103  
    33echo -n "Configuring and Starting Network..." 
    44 
    5 #Localhost 
     5# Localhost 
    66ifconfig lo 127.0.0.1 && echo -n "lo "                                        
    77 
    88ETH=eth0 
     9 
     10# If revomac is found try to find the linux interface which corresponds to the 
     11# pxe interface 
     12if grep -q revomac= /proc/cmdline 
     13then 
     14    REVOMAC=`sed -e 's/.*revomac=\([^ ]*\).*/\1/' </proc/cmdline` 
     15    for int in 0 1 2 3 4 5 6 7 
     16    do 
     17        MAC=`ifconfig eth$int 2>/dev/null|grep HWaddr|sed 's/.*HWaddr //'|sed 's/[ ]//g'|sed 's/[: ]//g'` 
     18        if [ "$MAC" = "$REVOMAC" ] ;then 
     19            ETH=eth$int 
     20            break 
     21        fi 
     22    done 
     23fi 
     24 
    925case "`cat /proc/cmdline`" in 
    1026    *revoeth1*)