2006-12-26 22:15:34 by steve
Add stub /etc/hosts file for new instances which use DHCP. See #484683
This commit is contained in:
parent
a8705d4bd5
commit
fc88b30ea4
@ -50,6 +50,26 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
# IPv6 stuff.
|
||||
grep '\(::\|IPv6\)' /etc/hosts >> ${prefix}/etc/hosts
|
||||
|
||||
else
|
||||
|
||||
#
|
||||
# Stub /etc/hosts for DHCP clients.
|
||||
#
|
||||
cat >> ${prefix}/etc/hosts <<EOF
|
||||
127.0.0.1 localhost
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
::1 ip6-localhost ip6-loopback
|
||||
fe00::0 ip6-localnet
|
||||
ff00::0 ip6-mcastprefix
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
||||
ff02::3 ip6-allhosts
|
||||
|
||||
EOF
|
||||
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
@ -50,6 +50,26 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
# IPv6 stuff.
|
||||
grep '\(::\|IPv6\)' /etc/hosts >> ${prefix}/etc/hosts
|
||||
|
||||
else
|
||||
|
||||
#
|
||||
# Stub /etc/hosts for DHCP clients.
|
||||
#
|
||||
cat >> ${prefix}/etc/hosts <<EOF
|
||||
127.0.0.1 localhost
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
::1 ip6-localhost ip6-loopback
|
||||
fe00::0 ip6-localnet
|
||||
ff00::0 ip6-mcastprefix
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
||||
ff02::3 ip6-allhosts
|
||||
|
||||
EOF
|
||||
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
@ -50,6 +50,26 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
# IPv6 stuff.
|
||||
grep '\(::\|IPv6\)' /etc/hosts >> ${prefix}/etc/hosts
|
||||
|
||||
else
|
||||
|
||||
#
|
||||
# Stub /etc/hosts for DHCP clients.
|
||||
#
|
||||
cat >> ${prefix}/etc/hosts <<EOF
|
||||
127.0.0.1 localhost
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
::1 ip6-localhost ip6-loopback
|
||||
fe00::0 ip6-localnet
|
||||
ff00::0 ip6-mcastprefix
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
||||
ff02::3 ip6-allhosts
|
||||
|
||||
EOF
|
||||
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
@ -50,6 +50,26 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
# IPv6 stuff.
|
||||
grep '\(::\|IPv6\)' /etc/hosts >> ${prefix}/etc/hosts
|
||||
|
||||
else
|
||||
|
||||
#
|
||||
# Stub /etc/hosts for DHCP clients.
|
||||
#
|
||||
cat >> ${prefix}/etc/hosts <<EOF
|
||||
127.0.0.1 localhost
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
::1 ip6-localhost ip6-loopback
|
||||
fe00::0 ip6-localnet
|
||||
ff00::0 ip6-mcastprefix
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
||||
ff02::3 ip6-allhosts
|
||||
|
||||
EOF
|
||||
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
@ -57,6 +57,26 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
# IPv6 stuff.
|
||||
grep '\(::\|IPv6\)' /etc/hosts >> ${prefix}/etc/hosts
|
||||
|
||||
else
|
||||
|
||||
#
|
||||
# Stub /etc/hosts for DHCP clients.
|
||||
#
|
||||
cat >> ${prefix}/etc/hosts <<EOF
|
||||
127.0.0.1 localhost
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
::1 ip6-localhost ip6-loopback
|
||||
fe00::0 ip6-localnet
|
||||
ff00::0 ip6-mcastprefix
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
||||
ff02::3 ip6-allhosts
|
||||
|
||||
EOF
|
||||
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user