Add grml-live script
[grml-live.git] / etc / grml / fai / config / scripts / GRML / 34-hosts
1 #!/bin/sh
2 set -u
3 set -e
4
5 HOSTNAME=''
6 [ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf
7 [ -n "$HOSTNAME" ] || HOSTNAME=grml
8
9 cat > "$target"/etc/hosts << EOF
10 127.0.0.1       $HOSTNAME    localhost
11
12 # The following lines are desirable for IPv6 capable hosts
13 # (added automatically by netbase upgrade)
14
15 ::1     ip6-localhost ip6-loopback $HOSTNAME
16 fe00::0 ip6-localnet
17 ff00::0 ip6-mcastprefix
18 ff02::1 ip6-allnodes
19 ff02::2 ip6-allrouters
20 ff02::3 ip6-allhosts
21 EOF