summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-25 12:11:19 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-25 12:11:19 -0300
commitc1d209a59cf4f7a70512329de49aff3c6c0cb8dd (patch)
treecec08aa16dae661e5fe48a14885391adedfa9fe8
parent975d0e530eae270002d12c01956b912474ae1370 (diff)
downloadhydra-c1d209a59cf4f7a70512329de49aff3c6c0cb8dd.tar.gz
hydra-c1d209a59cf4f7a70512329de49aff3c6c0cb8dd.tar.bz2
Provision: basic network config
-rwxr-xr-xshare/hydractl/provision8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index fe4d0d8..f214e0f 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -433,6 +433,14 @@ hydra_sudo_run chroot $WORK update-initramfs -v -u
echo "Installing basic utilities..."
hydra_sudo_run chroot $WORK apt-get install screen cron lsb-release openssl -y
+# Networking.
+echo "Doing a basic network config..."
+cat <<-EOF | $SUDO tee $WORK/etc/network/interfaces > /dev/null
+auto eth0
+allow-hotplug eth0
+iface eth0 inet dhcp
+EOF
+
# Ssh.
echo "Installing OpenSSH daemon..."
hydra_sudo_run chroot $WORK apt-get install openssh-server -y