ME=`hostname`

if ! [ -f /home/hosts.${ME} ]; then
	cp /etc/hosts /home/hosts.${ME}
fi

count=1

echo '# kkatarn 2015-09-28' >> /etc/hosts

for ip in `cat /home/aaisk/ibnodes `; do
	printf "%s\tibnode%02d\n" $ip $count >> /etc/hosts
	count=$(($count+1))
done
