updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / xe-guest-utilities / ip_address.patch
blob1e589ef37e80f5b63e4f356131ba0f88f0a79cc3
1 --- src.orig/usr/sbin/xe-update-guest-attrs 2011-12-28 21:05:13.055346917 -0600
2 +++ src/usr/sbin/xe-update-guest-attrs 2011-12-28 21:04:02.545354603 -0600
3 @@ -151,9 +151,9 @@
4 # 3: sit0: <NOARP> mtu 1480 qdisc noop
5 # link/sit 0.0.0.0 brd 0.0.0.0
7 -#eval $(ip addr show | \
8 -# sed -n -e 's/^[[:digit:]]*: \([a-z0-9]*\): .*/ifs="\$ifs \1"; current="\1"; /gp;' \
9 -# -e 's/^[[:space:]]\{4\}inet \('${IPADDR_RE}'\)\/.*/eval inet_\${current}="\1"; /gp;')
10 +eval $(ip addr show | \
11 + sed -n -e 's/^[[:digit:]]*: \([a-z0-9]*\): .*/ifs="\$ifs \1"; current="\1"; /gp;' \
12 + -e 's/^[[:space:]]\{4\}inet \('${IPADDR_RE}'\)\/.*/eval inet_\${current}="\1"; /gp;')
14 # e.g.
15 # eth0 Link encap:Ethernet HWaddr 00:13:20:95:E8:74
16 @@ -175,10 +175,10 @@
17 # collisions:0 txqueuelen:0
18 # RX bytes:3604609 (3.4 MiB) TX bytes:3604609 (3.4 MiB)
20 -eval $(/sbin/ifconfig | \
21 - sed -n -e '/^[0-9a-z][0-9a-z]*\:/,/^$/d' \
22 - -e 's/^\([0-9a-z][0-9a-z]*\) .*/ifs="\$ifs \1"; current="\1"; /gp;' \
23 - -e 's/ *inet addr:\('$IPADDR_RE'\) .*/eval inet_\${current}="\1"; /gp;')
24 +#eval $(/sbin/ifconfig | \
25 +# sed -n -e '/^[0-9a-z][0-9a-z]*\:/,/^$/d' \
26 +# -e 's/^\([0-9a-z][0-9a-z]*\) .*/ifs="\$ifs \1"; current="\1"; /gp;' \
27 +# -e 's/ *inet addr:\('$IPADDR_RE'\) .*/eval inet_\${current}="\1"; /gp;')
29 # network
30 for if in $ifs ; do