if [ "$NIC_COUNT" -ge 2 ]; then
cat >> $TARGET/etc/network/interfaces << EOF
+
auto eth1
iface eth1 inet static
- address ${NIC_0_IP}
+ address ${NIC_1_IP}
netmask 255.255.255.0
EOF
nameserver 206.12.19.21
EOF
+# clean up etc/hosts
+cat > $TARGET/etc/hosts
+127.0.0.1 localhost
+
+# The following lines are desirable for IPv6 capable hosts
+::1 ip6-localhost ip6-loopback
+fe00::0 ip6-localnet
+ff00::0 ip6-mcastprefix
+ff02::1 ip6-allnodes
+ff02::2 ip6-allrouters
+EOF
+
exit 0
# vim:set syn=sh: