xcat-core/xCAT/postscripts/updatenetwork
2013-03-04 05:15:38 +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