# Set the hostname.
linpus_host="`cat /etc/sysconfig/network | grep HOSTNAME | cut -d "=" -f2`"
#echo "127.0.0.1 localhost localhost
#127.0.0.1 ${linpus_host} ${linpus_host}
#" > /etc/hosts
echo ${linpus_host} > /etc/HOSTNAME
/bin/hostname $(cat /etc/HOSTNAME | cut -f1 -d .)