diff --git a/setup.sh b/setup.sh index 0ab14af..3ffbce3 100644 --- a/setup.sh +++ b/setup.sh @@ -273,10 +273,10 @@ echo "Writing network interfaces file..." >> /mnt/setup-chroot.sh macaddr=$(echo $hostname|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/') mkdir -p /mnt/etc/network && mkdir -p /mnt/etc/network/interfaces.d echo "auto lo br0" > /mnt/etc/network/interfaces.d/br0 -echo "iface lo inet loopback" >> /etc/network/interfaces.d/br0 +echo "iface lo inet loopback" >> /mnt/etc/network/interfaces.d/br0 niclist="" for nic in "$nics"; do - echo "iface ${nic} inet manual" >> /etc/network/interfaces.d/br0 + echo "iface ${nic} inet manual" >> /mnt/etc/network/interfaces.d/br0 niclist="$niclist $nic" done echo "iface br0 inet dhcp" >> /mnt/etc/network/interfaces.d/br0 @@ -464,7 +464,7 @@ if ! [ "$?" = "0" ]; then exit $? fi -#exit 0 +exit 0 # commented out for debugging echo "" echo "Clearing chroot configuration script..."