xcat-core/xCAT/postscripts/updatenetwork
2013-02-26 04:53:56 +00:00

6 lines
164 B
Plaintext

. /tmp/post-install/variables.txt
echo "Updating hostname to $HOSTNAME"
sed -i "s/HOSTNAME=.*/HOSTNAME=$HOSTNAME/g" /etc/sysconfig/network
hostname $HOSTNAME