Skip to contentSkip to conversation

Adding a second IP address onto eth0 causes the vif-* hotplug scripts to

Xen-changelog Jeremy Katz 1 participant 1 message Feb 22, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Review

Quoted 2 lines · Xen patchbot -unstable
(quoted diff) +1 -1
-  ip addr show "$1" | awk "/^.*inet.*$1\$/{print \$2}" | sed 's,/.*,,'
+  ip addr show "$1" | awk "/^.*inet.*$1\$/{print \$2}" | sed 's,/.*,,' | head -1

As previously stated, head -1 is deprecated syntax and makes some versions of coreutils barf.

Please use the more posixly correct 'head -n 1' instead

Jeremy