2006-12-23 23:22:27 by steve
Add short hostname to /etc/host on dom0 too.
This commit is contained in:
parent
9508b56ca2
commit
12193d90c8
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user