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."