then
if ifclass VM; then
cat > $target/etc/network/interfaces <<-EOF
- # installed by FAI
+ # generated by FAI
auto lo $NIC1
iface lo inet loopback
iface $NIC1 inet dhcp
netmask $NETMASK
broadcast $BROADCAST
gateway $GATEWAYS
- hwaddress ether $(cat /sys/class/net/$NIC1/address)
EOF
[ -n "$NETWORK" ] && echo "localnet $NETWORK" > $target/etc/networks
if [ ! -L $target/etc/resolv.conf -a -e /etc/resolv.conf ]; then