summaryrefslogtreecommitdiff
path: root/bin/network_configuration.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/network_configuration.sh')
-rw-r--r--bin/network_configuration.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/network_configuration.sh b/bin/network_configuration.sh
new file mode 100644
index 0000000..251f9a0
--- /dev/null
+++ b/bin/network_configuration.sh
@@ -0,0 +1,15 @@
+
+
+# Network Configuration
+
+touch /etc/hostname
+echo $1 > /etc/hostname
+
+touch /etc/hosts
+echo "" >> /etc/hosts
+echo "127.0.0.1 localhost" >> /etc/hosts
+echo "::1 localhost" >> /etc/hosts
+
+echo "Network configuration done - OK"
+echo ""
+sleep 1