1
0
mirror of synced 2026-01-21 09:53:08 +00:00

2006-12-23 23:22:27 by steve

Add short hostname to /etc/host on dom0 too.
This commit is contained in:
steve 2006-12-23 23:22:28 +00:00
parent 9508b56ca2
commit 12193d90c8
5 changed files with 36 additions and 10 deletions

View File

@ -64,9 +64,15 @@ if [ -z "${dhcp}" ]; then
else
logMessage Adding ${hostname} to /etc/hosts on the host
#
# Short host name.
#
name=`echo ${hostname} | awk -F. '{print $1}'`
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
echo "${ip1} ${name} ${hostname}" >> /etc/hosts
echo "${ip1} ${hostname}" >> /etc/hosts
#
# If we've updated the /etc/hosts file on the host machine

View File

@ -64,9 +64,15 @@ if [ -z "${dhcp}" ]; then
else
logMessage Adding ${hostname} to /etc/hosts on the host
#
# Short host name.
#
name=`echo ${hostname} | awk -F. '{print $1}'`
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
echo "${ip1} ${name} ${hostname}" >> /etc/hosts
echo "${ip1} ${hostname}" >> /etc/hosts
#
# If we've updated the /etc/hosts file on the host machine

View File

@ -64,9 +64,14 @@ if [ -z "${dhcp}" ]; then
else
logMessage Adding ${hostname} to /etc/hosts on the host
#
# Short host name.
#
name=`echo ${hostname} | awk -F. '{print $1}'`
echo "${ip1} ${hostname}" >> /etc/hosts
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
echo "${ip1} ${name} ${hostname}" >> /etc/hosts
#
# If we've updated the /etc/hosts file on the host machine

View File

@ -63,10 +63,14 @@ if [ -z "${dhcp}" ]; then
logMessage Host already has IP address for the host ${hostname}.
else
#
# Short host name.
#
name=`echo ${hostname} | awk -F. '{print $1}'`
logMessage Adding ${hostname} to /etc/hosts on the host
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
echo "${ip1} ${hostname}" >> /etc/hosts
echo "${ip1} ${name} ${hostname}" >> /etc/hosts
#
# If we've updated the /etc/hosts file on the host machine

View File

@ -71,9 +71,14 @@ if [ -z "${dhcp}" ]; then
else
logMessage Adding ${hostname} to /etc/hosts on the host
#
# Short host name.
#
name=`echo ${hostname} | awk -F. '{print $1}'`
echo "${ip1} ${hostname}" >> /etc/hosts
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
echo "${ip1} ${name} ${hostname}" >> /etc/hosts
#
# If we've updated the /etc/hosts file on the host machine