]> gitweb.fluxo.info Git - hydra.git/commitdiff
Provision: basic network config
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Sep 2015 15:11:19 +0000 (12:11 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Sep 2015 15:11:19 +0000 (12:11 -0300)
share/hydractl/provision

index fe4d0d8e9a68353642dd2bdeb245e2821a686562..f214e0f8844aec2292a9f9f838f5838a15c02a47 100755 (executable)
@@ -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