From: Konrad Rzeszutek Wilk Date: Tue, 29 Apr 2014 13:59:56 +0000 (-0400) Subject: rcS/network: Bring up to six interfaces instead of two. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c8ae48617980ca2ae4c6c1fc921f57b9cefc68e6;p=xentesttools%2Fbootstrap.git rcS/network: Bring up to six interfaces instead of two. With more NICs (for SR-IOV testing) the built-in NIC can show up _after_ the SR-IOV one when module loading. As such just bring up more interfaces. Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/root_image/etc/init.d/primary_network b/root_image/etc/init.d/primary_network index 9af370d..be8e44e 100755 --- a/root_image/etc/init.d/primary_network +++ b/root_image/etc/init.d/primary_network @@ -2,7 +2,7 @@ . /etc/init.d/functions -MAX_NICS=3 +MAX_NICS=6 function create_bridge() { @@ -96,7 +96,7 @@ function create_static_if() { echo "DNS_1=$J.0.0.1" >> $FILE echo "NM_CONTROLLED=no" >> $FILE COUNT=$(($COUNT+1)) - # We only want at max two interfaces. + # We only want at max six interfaces. if [ $COUNT -ge $MAX_NICS ]; then break; fi