From c2665225981ff620f1a8ff69c6275528467f1c7c Mon Sep 17 00:00:00 2001 From: sean Date: Mon, 15 Jul 2019 15:21:47 -0700 Subject: [PATCH] tweaks --- setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.sh b/setup.sh index ca9a874..0b836fb 100644 --- a/setup.sh +++ b/setup.sh @@ -271,6 +271,7 @@ echo "echo \"Done.\"" >> /mnt/setup-chroot.sh echo "" echo "Writing network interfaces file..." macaddr=$(echo $hostname|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/') +echo "mkdir -p /etc/network && mkdir -p /etc/network/interfaces.d" >> /mnt/setup-chroot.sh echo "echo \"auto lo br0\" > /etc/network/interfaces" >> /mnt/setup-chroot.sh echo "echo \"iface lo inet loopback\" >> /etc/network/interfaces" >> /mnt/setup-chroot.sh for nic in "$nics"; do @@ -282,6 +283,7 @@ echo "echo \" bridge_ports $nics\" >> /etc/network/interfaces/br0" >> /mn echo "echo \" bridge_stp on\" >> /etc/network/interfaces/br0" >> /mnt/setup-chroot.sh echo "echo \" dns-nameservers 127.0.0.53\" >> /etc/network/interfaces/br0" >> /mnt/setup-chroot.sh echo "echo \"source-directory /etc/network/interfaces.d\" > /etc/network/interfaces" >> /mnt/setup-chroot.sh +echo "systemctl unmask networking && systemctl enable networking" >> /mnt/setup-chroot.sh echo "Done."