Parent Directory
|
Revision Log
$HOSTNAME is a possible bashism.
| 1 | #!/bin/bash |
| 2 | |
| 3 | # fix /etc/mailname |
| 4 | echo "$HOSTNAME.dc10.debconf.org" > /etc/mailname |
| 5 | |
| 6 | # fix /etc/hosts |
| 7 | |
| 8 | IPADDRESS=`host $HOSTNAME | awk '{print $4}'|head -1` |
| 9 | cat /etc/hosts |grep -v "127.0"|grep -v $HOSTNAME > /etc/hosts.tmp |
| 10 | echo "127.0.0.1 localhost" >> /etc/hosts.tmp |
| 11 | echo "$IPADDRESS $HOSTNAME.dc10.debconf.org $HOSTNAME" >> /etc/hosts.tmp |
| 12 | mv /etc/hosts.tmp /etc/hosts |
| 13 |
| Name | Value |
|---|---|
| svn:executable | * |
| ViewVC Help | |
| Powered by ViewVC 1.1.5 |