summaryrefslogtreecommitdiffstats
path: root/hw_config/intel/setup_network.sh
diff options
context:
space:
mode:
authorVictor Morales <v.morales@samsung.com>2020-07-30 17:56:36 -0400
committerVictor Morales <v.morales@samsung.com>2020-08-11 16:57:55 -0400
commit15af69c32d0338d7a659ddcf23cfb339973d18e2 (patch)
treeca149f134613f070b1e066d7e582d3243732882e /hw_config/intel/setup_network.sh
parent60d2988bbae760beeac9a2d42812332cfddd2a54 (diff)
Implement linting process
This commit pretends to make changes required by yamllint and shellcheck tools. Signed-off-by: Victor Morales <v.morales@samsung.com> Change-Id: I73b0a3b54f89b2692c1c3af7940a3acf1124fadb
Diffstat (limited to 'hw_config/intel/setup_network.sh')
-rwxr-xr-xhw_config/intel/setup_network.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/hw_config/intel/setup_network.sh b/hw_config/intel/setup_network.sh
index a6ff6df..4035b7a 100755
--- a/hw_config/intel/setup_network.sh
+++ b/hw_config/intel/setup_network.sh
@@ -1,11 +1,20 @@
+#!/bin/bash
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c)
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
# 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
+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
-