From 615b6623a7fedafd193cfcfb3f3fd9a0c4197a39 Mon Sep 17 00:00:00 2001
From: Andy Witter <awitter@georgialibraries.org>
Date: Tue, 9 Apr 2019 15:03:20 -0400
Subject: [PATCH] temporarily bring interface active during install.

---
 templates/setup.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/templates/setup.sh b/templates/setup.sh
index 1fb1ce3..19202ea 100755
--- a/templates/setup.sh
+++ b/templates/setup.sh
@@ -219,6 +219,15 @@ if [ -e tar_file_apt.list ]
 	$APT_TOOL -y install $(cat tar_file_apt.list) 2>&1 | tee -a "$INSTALL_LOG"
 fi
 
+### Temporary create and alias interface for installation
+GetNics
+if [ ! -z "${SECOND_PHYSICAL_INTERFACE}" ]
+then
+    PRIMARY_INTERFACE="${SECOND_PHYSICAL_INTERFACE}"
+fi
+ip a add Priv_IP/My_CIDR dev $PRIMARY_INTERFACE label ${PRIMARY_INTERFACE}:0 #TODO update Variable to $3PRIMARY_INTERFACE - done
+ip link set $PRIMARY_INTERFACE up
+
 ### Fix bug in NFS that caused failure to start at boot time
 if cat tar_file_apt.list | grep -q nfs
 then
-- 
2.11.0