From c8ae48617980ca2ae4c6c1fc921f57b9cefc68e6 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Tue, 29 Apr 2014 09:59:56 -0400 Subject: [PATCH] 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 --- root_image/etc/init.d/primary_network | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5