direct-io.hg

changeset 316:d9311572d877

bitkeeper revision 1.136.1.1 (3e745e03Z7L06D2idmjbeBT1RUi98Q)

minor improvement to "mynewdom" to set the hostname
author iap10@labyrinth.cl.cam.ac.uk
date Sun Mar 16 11:20:35 2003 +0000 (2003-03-16)
parents 48cd5a789e4b
children cbf03b1763cf
files tools/domain_builder/mynewdom xen/arch/i386/Rules.mk
line diff
     1.1 --- a/tools/domain_builder/mynewdom	Sun Mar 16 00:18:30 2003 +0000
     1.2 +++ b/tools/domain_builder/mynewdom	Sun Mar 16 11:20:35 2003 +0000
     1.3 @@ -21,7 +21,10 @@ LO=`echo $ADDR | sed -e 's/[0-9]\+\.[0-9
     1.4  HI=`echo $ADDR | sed -e 's/\([0-9]\+\.[0-9]\+\.[0-9]\+\)\.[0-9]\+/\1/'`
     1.5  NEWADDR=$HI.$[LO+DOM]
     1.6  
     1.7 -echo New IP address : ${NEWADDR}
     1.8 +NEWNAME=$NEWADDR
     1.9 +LOOKUP=`host $NEWADDR`
    1.10 +echo $LOOKUP | grep 'domain name pointer' && NEWNAME=`echo $LOOKUP | sed -e 's!.*domain name pointer \([^ ]\+\).$!\1!'`
    1.11 +echo New IP address : ${NEWADDR}  name : ${NEWNAME}
    1.12  
    1.13  CMDLINE=`cat /proc/cmdline`
    1.14  case $CMDLINE in
     2.1 --- a/xen/arch/i386/Rules.mk	Sun Mar 16 00:18:30 2003 +0000
     2.2 +++ b/xen/arch/i386/Rules.mk	Sun Mar 16 11:20:35 2003 +0000
     2.3 @@ -9,6 +9,7 @@ MONITOR_BASE := 0xFC500000
     2.4  LOAD_BASE    := 0x00100000
     2.5  CFLAGS  := -nostdinc -fno-builtin -O3 -Wall -DMONITOR_BASE=$(MONITOR_BASE) 
     2.6  CFLAGS  += -fomit-frame-pointer -I$(BASEDIR)/include -D__KERNEL__ -DNDEBUG
     2.7 +#CFLAGS  += -fomit-frame-pointer -I$(BASEDIR)/include -D__KERNEL__
     2.8  LDFLAGS := -T xeno.lds -N
     2.9  
    2.10