2006-06-07 09:10:27 by steve
Fixup to change the ip from ${ip} -> ${ip1}
This commit is contained in:
@@ -30,7 +30,7 @@ if [[ -z "${dhcp}" ]]; then
|
||||
grep -v '\(::\|IPv6\)' /etc/hosts > ${prefix}/etc/hosts
|
||||
|
||||
# New entry.
|
||||
echo "${ip} ${hostname}" >> ${prefix}/etc/hosts
|
||||
echo "${ip1} ${hostname}" >> ${prefix}/etc/hosts
|
||||
echo " " >> ${prefix}/etc/hosts
|
||||
|
||||
# IPv6 stuff.
|
||||
@@ -48,7 +48,7 @@ if [[ -z "${dhcp}" ]]; then
|
||||
# Host already has IP address for the given host.
|
||||
:
|
||||
else
|
||||
echo "${ip} ${hostname}" >> /etc/hosts
|
||||
echo "${ip1} ${hostname}" >> /etc/hosts
|
||||
|
||||
#
|
||||
# If we've updated the /etc/hosts file on the host machine
|
||||
|
||||
@@ -61,6 +61,6 @@ dhcp = "dhcp"
|
||||
vif = [ '' ]
|
||||
E_O_CFG
|
||||
else
|
||||
echo "vif = ['ip=${ip}']" >> ${output_dir}/${hostname}.cfg
|
||||
echo "vif = ['ip=${ip1}']" >> ${output_dir}/${hostname}.cfg
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user