Do the echo into /etc/network/interfaces before the disk zeroing; stuff tends not to work after the disk is zeroed.