|
|
|
|
@ -461,7 +461,7 @@ for nic in "$nics"; do
|
|
|
|
|
done
|
|
|
|
|
echo "iface br0 inet dhcp" >> /mnt/etc/network/interfaces.d/br0
|
|
|
|
|
#echo " post-up ip link set br0 address $macaddr" >> /mnt/etc/network/interfaces.d/br0
|
|
|
|
|
echo " bridge_hw $macaddr" >> /mnt/etc/network/interfaces.d/br0
|
|
|
|
|
#echo " bridge_hw $macaddr" >> /mnt/etc/network/interfaces.d/br0
|
|
|
|
|
echo " bridge_waitport 0" >> /mnt/etc/network/interfaces.d/br0
|
|
|
|
|
echo " bridge_fd 0" >> /mnt/etc/network/interfaces.d/br0
|
|
|
|
|
echo " bridge_ports${niclist}" >> /mnt/etc/network/interfaces.d/br0
|
|
|
|
|
@ -479,8 +479,14 @@ echo " exit 1">> /mnt/setup-chroot.sh
|
|
|
|
|
echo "fi">> /mnt/setup-chroot.sh
|
|
|
|
|
echo "echo \"Done.\"" >> /mnt/setup-chroot.sh
|
|
|
|
|
|
|
|
|
|
# add the firewall rule for SSH, but there may already be an exception for this, test the network in the live environment
|
|
|
|
|
|
|
|
|
|
sed -ir 's/### RULES ###/### RULES ###\n-A ufw-user-input -i br0 -p tcp --dport 22 -j ACCEPT/g' /mnt/etc/ufw/user.rules
|
|
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# commented out for debugging
|
|
|
|
|
echo ""
|
|
|
|
|
echo "Clearing chroot configuration script..."
|
|
|
|
|
|