Last change
on this file since 3373 was 2725, checked in by Bruno Cornec, 13 years ago |
- Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
|
File size:
447 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | echo "\
|
---|
3 | # This file is automagically regenerated
|
---|
4 | # Note! /etc/nsswitch.conf may override this!
|
---|
5 |
|
---|
6 | # For loopbacking
|
---|
7 | 127.0.0.1 localhost
|
---|
8 |
|
---|
9 | # Our local IPs"
|
---|
10 |
|
---|
11 | hostname=`hostname`
|
---|
12 | test "$hostname" || hostname=localhost
|
---|
13 | domain=`(. /boot.conf; echo "$DNSDOMAINNAME")`
|
---|
14 | test "$domain" && hostname="$hostname $hostname.$domain"
|
---|
15 |
|
---|
16 | ip -o a l \
|
---|
17 | | grep -F 'inet ' \
|
---|
18 | | sed -e 's/^.*inet //' -e 's:[ /].*$: '"$hostname"':'
|
---|
19 |
|
---|
20 | echo
|
---|
21 | echo "# End of /etc/hosts"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.