#!/bin/sh

# provide ifconfig command
apt-get install -y net-tools

# change default interface name to eth0 schema

sed -i 's#GRUB_CMDLINE_LINUX=.*#GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"#' /etc/default/grub

update-grub

sed -i 's#allow-hotplug ens3.*#allow-hotplug eth0#' /etc/network/interfaces
sed -i 's#iface ens3 inet dhcp.*#iface eth0 inet dhcp#' /etc/network/interfaces
