From 86773da26876bc00b935b3ca1ac8afbe2a6e0555 Mon Sep 17 00:00:00 2001 From: sean Date: Mon, 15 Jul 2019 15:00:29 -0700 Subject: [PATCH] tweaks --- setup.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup.sh b/setup.sh index 8f8998c..ca9a874 100644 --- a/setup.sh +++ b/setup.sh @@ -276,12 +276,12 @@ echo "echo \"iface lo inet loopback\" >> /etc/network/interfaces" >> /mnt/setup- for nic in "$nics"; do echo "echo \"iface ${nic} inet manual\" >> /etc/network/interfaces" >> /mnt/setup-chroot.sh done -echo "echo \"iface br0 inet dhcp\" >> /etc/network/interfaces" >> /mnt/setup-chroot.sh -echo "echo \" post-up ip link set br0 address $macaddr\" >> /etc/network/interfaces" >> /mnt/setup-chroot.sh -echo "echo \" bridge_ports $nics\" >> /etc/network/interfaces" >> /mnt/setup-chroot.sh -echo "echo \" bridge_stp on\" >> /etc/network/interfaces" >> /mnt/setup-chroot.sh -echo "echo \" dns-nameservers 127.0.0.53\" >> /etc/network/interfaces" >> /mnt/setup-chroot.sh -echo "echo \"source-directory /etc/network/interfaces.d\" >> /etc/network/interfaces" >> /mnt/setup-chroot.sh +echo "echo \"iface br0 inet dhcp\" >> /etc/network/interfaces.d/br0" >> /mnt/setup-chroot.sh +echo "echo \" post-up ip link set br0 address $macaddr\" >> /etc/network/interfaces/br0" >> /mnt/setup-chroot.sh +echo "echo \" bridge_ports $nics\" >> /etc/network/interfaces/br0" >> /mnt/setup-chroot.sh +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 "Done."