1
0
mirror of synced 2026-05-01 14:16:09 +00:00

2006-06-07 09:10:27 by steve

Fixup to change the ip from ${ip} -> ${ip1}
This commit is contained in:
steve
2006-06-07 09:10:27 +00:00
parent ac56e57798
commit f881ee1025
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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