summaryrefslogtreecommitdiffstats
path: root/hw_config/intel/setup_network.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hw_config/intel/setup_network.sh')
-rwxr-xr-xhw_config/intel/setup_network.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/hw_config/intel/setup_network.sh b/hw_config/intel/setup_network.sh
new file mode 100755
index 0000000..a6ff6df
--- /dev/null
+++ b/hw_config/intel/setup_network.sh
@@ -0,0 +1,11 @@
+# Adapt this script according to your network setup
+# TODO Get networking info from PDF & IDF
+# TODO Add support in infra engine to update nameserver, etc
+# files with correct info
+#!/bin/bash
+
+echo nameserver 8.8.8.8 > /etc/resolv.conf
+sed -i 's/NM_CONTROLLED=yes/NM_CONTROLLED=no/g' /etc/sysconfig/network-scripts/ifcfg-eth2
+echo GATEWAY=10.10.190.1 >> /etc/sysconfig/network-scripts/ifcfg-eth2
+ifup eth2
+