SOURCES: xen-scripts.patch (NEW) - our iputils are evil

speedy speedy at pld-linux.org
Mon Jun 13 14:43:45 CEST 2005


Author: speedy                       Date: Mon Jun 13 12:43:43 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- our iputils are evil

---- Files affected:
SOURCES:
   xen-scripts.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/xen-scripts.patch
diff -u /dev/null SOURCES/xen-scripts.patch:1.1
--- /dev/null	Mon Jun 13 14:43:43 2005
+++ SOURCES/xen-scripts.patch	Mon Jun 13 14:43:38 2005
@@ -0,0 +1,39 @@
+--- xen-2.0/tools/examples/network.orig	2005-05-22 12:56:31.000000000 +0200
++++ xen-2.0/tools/examples/network	2005-06-13 14:23:26.000000000 +0200
+@@ -69,7 +69,7 @@
+     # to 'dev $src'. Remove netmask as we'll add routes later.
+     ip addr show dev ${src} | egrep '^ *inet ' | sed -e "
+ s/inet/ip addr add/
+-s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)/[0-9]\+@\1@
++s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)/[0-9]\*@\1@
+ s/${src}/dev ${dst}/
+ " | sh -e
+ }
+@@ -104,7 +104,7 @@
+ s/^/ip route add /
+ P
+ d
+-" | sh -e
++" | grep -v scope | sh -e 
+ }
+ 
+ # Usage: create_bridge bridge
+@@ -185,6 +185,7 @@
+     else
+         transfer_addrs ${netdev} ${bridge}
+         transfer_routes ${netdev} ${bridge}
++	del_addrs ${netdev}
+     fi
+ 
+     # Attach the real interface to the bridge.
+--- xen-2.0/tools/examples/network.orig	2005-06-13 14:27:19.000000000 +0200
++++ xen-2.0/tools/examples/network	2005-06-13 14:36:01.000000000 +0200
+@@ -79,7 +79,7 @@
+     local src=$1
+     ip addr show dev ${src} | egrep '^ *inet ' | sed -e "
+ s/inet/ip addr del/
+-s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)/[0-9]\+@\1@
++s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)/[0-9]\*@\1@
+ s/${src}/dev ${src}/
+ " | sh -e
+ }
================================================================



More information about the pld-cvs-commit mailing list