Changeset 155

Show
Ignore:
Timestamp:
08/01/06 15:23:40 (2 years ago)
Author:
ludo
Message:

cdrom restoration fixes (from r3575)

Files:

Legend:

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

    r103 r155  
    66ifconfig lo 127.0.0.1 && echo -n "lo "                                        
    77 
     8# CDROM restore ? 
     9grep -q revosavedir=/cdrom /proc/cmdline && CDROM=1 
     10 
     11# 
    812ETH=eth0 
    9  
    1013# If revomac is found try to find the linux interface which corresponds to the 
    1114# pxe interface 
     
    3942# dhcp 
    4043ifconfig $ETH up && echo "$ETH" 
    41 pump -i $ETH -h lrsclient --win-client-ident 
     44[ -z $CDROM ] && pump -i $ETH -h lrsclient --win-client-ident 
    4245# multicast 
    43 route add -net 224.0.0.0 netmask 240.0.0.0 dev $ETH 
     46[ -z $CDROM ] && route add -net 224.0.0.0 netmask 240.0.0.0 dev $ETH 
    4447# save the mac address 
    4548ifconfig $ETH|grep HWaddr|sed 's/.*HWaddr //'|sed 's/[ ]//g' >/etc/mac