Changeset 245

Show
Ignore:
Timestamp:
04/26/07 18:10:27 (2 years ago)
Author:
ludo
Message:

get the MAC from the command line. added /dev/input (from r4319)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/client/src_initrd/Makefile

    r198 r245  
    2828        #mount $(INITRD) $(LOOP) -o loop 
    2929        tar cvf - --exclude .svn -C $(TREE) . | tar xf - -C $(LOOP) 
    30         (cd $(LOOP)/dev; $(MKDEV) console ptyp std hda hdb hdc hdd hde hdf hdg hdh sda sdb sdc sdd sde sdf sdg sdh fd0 cciss.0 cciss.1 ida.0 scd0 scd1; mknod -m 600 initctl p; mknod -m 600 log p) 
     30        (cd $(LOOP)/dev; $(MKDEV) console ptyp std hda hdb hdc hdd hde hdf hdg hdh sda sdb sdc sdd sde sdf sdg sdh fd0 cciss.0 cciss.1 ida.0 scd0 scd1 input; mknod -m 600 initctl p; mknod -m 600 log p) 
    3131        # get the latest pump 
    3232        strip pump/pump 
  • trunk/client/src_initrd/tree/etc/init.d/network

    r215 r245  
    4747# multicast 
    4848[ -z $NOPUMP ] && route add -net 224.0.0.0 netmask 240.0.0.0 dev $ETH 
     49 
    4950# save the mac address 
    50 ifconfig $ETH|grep HWaddr|sed 's/.*HWaddr //'|sed 's/[ ]//g' >/etc/mac 
     51if [ "$REVOMAC" ] ;then 
     52    echo $REVOMAC|sed 's/\(..\)/\1:/g'|sed 's/:$//' >/etc/mac 
     53else 
     54    ifconfig $ETH|grep HWaddr|sed 's/.*HWaddr //'|sed 's/[ ]//g' >/etc/mac 
     55fi 
    5156sed 's/[: ]//g'</etc/mac >/etc/shortmac