#!/bin/sh
echo "\
# This file is automagically regenerated with each boot
# Note! /etc/nsswitch.conf may override this!

# For loopbacking
127.0.0.1 localhost
"

i=0
while test "${IPADDR[$i]}"; do
    echo "${IPADDR[$i]} $HOSTNAME.$DNSDOMAINNAME $HOSTNAME"
    i=$(($i+1))
done  
echo
echo "# End of /etc/hosts"
