summarylogtreecommitdiffstats
path: root/ip_address.patch
diff options
context:
space:
mode:
authorAntonio Rojas2017-07-06 19:07:52 +0000
committerAntonio Rojas2017-07-06 19:07:52 +0000
commitd5d0afda8d1351d4d7c905f61324a365b1a46475 (patch)
treebec6fc4fc10e7d10758a91737a56f965c58294bc /ip_address.patch
downloadaur-d5d0afda8d1351d4d7c905f61324a365b1a46475.tar.gz
Drop from repos
Diffstat (limited to 'ip_address.patch')
-rw-r--r--ip_address.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/ip_address.patch b/ip_address.patch
new file mode 100644
index 00000000000..3142c3d6bdf
--- /dev/null
+++ b/ip_address.patch
@@ -0,0 +1,16 @@
+diff -uNr a/xe-update-guest-attrs b/xe-update-guest-attrs
+--- a/xe-update-guest-attrs 2012-09-25 12:45:14.000000000 +0200
++++ b/xe-update-guest-attrs 2012-11-21 16:46:35.000000000 +0100
+@@ -177,9 +177,9 @@
+ # collisions:0 txqueuelen:0
+ # RX bytes:3604609 (3.4 MiB) TX bytes:3604609 (3.4 MiB)
+
+-ifs=`/sbin/ifconfig | sed -n -e 's/^\([a-z0-9]\+\).*/name \1/p' \
+- -e 's/.*inet addr:\('$IPADDR_RE'\) .*/ipv4 \1/p' \
+- -e 's+.*inet6 addr: \('$IPADDR6_RE'\)/.*+ipv6 \1+p' | \
++ifs=`ip addr show | sed -n -e 's/^[[:digit:]]*: \([a-z0-9]*\): .*/name \1 /gp;' \
++ -e 's/^[[:space:]]\{4\}inet \('${IPADDR_RE}'\)\/.*/ipv4 \1 /gp;' \
++ -e 's/^[[:space:]]\{4\}inet6 \('${IPADDR6_RE}'\)\/.*/ipv6 \1 /gp;' | \
+ while read tag value; do
+ case "${tag}" in
+ name)