Adding a second IP address onto eth0 causes the vif-* hotplug scripts to
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