ia64/xen-unstable

changeset 1735:d1de906154d3

bitkeeper revision 1.1062.1.2 (40f03be45vi3trPSnOPEM4qVXFTLFw)

Fix to /etc/xen/network script.
author iap10@labyrinth.cl.cam.ac.uk
date Sat Jul 10 18:56:36 2004 +0000 (2004-07-10)
parents cafda17c0350
children eeaf210226a7
files BitKeeper/etc/ignore tools/examples/network
line diff
     1.1 --- a/BitKeeper/etc/ignore	Sat Jul 10 14:55:46 2004 +0000
     1.2 +++ b/BitKeeper/etc/ignore	Sat Jul 10 18:56:36 2004 +0000
     1.3 @@ -32,3 +32,6 @@ xen/figlet/figlet
     1.4  xen/xen
     1.5  xen/xen-syms
     1.6  xen/xen.*
     1.7 +tools/xfrd/xfrd
     1.8 +xen/tools/elf-reloc
     1.9 +xen/tools/figlet/figlet
     2.1 --- a/tools/examples/network	Sat Jul 10 14:55:46 2004 +0000
     2.2 +++ b/tools/examples/network	Sat Jul 10 18:56:36 2004 +0000
     2.3 @@ -1,4 +1,4 @@
     2.4 -#!/bin/sh
     2.5 +#!/bin/sh 
     2.6  #============================================================================
     2.7  # Example Xen network start/stop script.
     2.8  # Xend calls a network script when it starts.
     2.9 @@ -54,9 +54,10 @@ transfer_addrs () {
    2.10      fi
    2.11      # Address lines start with 'inet' and have the device in them.
    2.12      # Replace 'inet' with 'ip addr add' and change the device name $src
    2.13 -    # to 'dev $src'.
    2.14 +    # to 'dev $src'. Remove netmask as we'll add routes later.
    2.15      ip addr show dev ${src} | egrep '^ *inet' | sed -e "
    2.16  s/inet/ip addr add/
    2.17 +s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)/[0-9]\+@\1@
    2.18  s/${src}/dev ${dst}/
    2.19  " | sh -e
    2.20  }