X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fgrml-hostname;h=cc429cd5e3eb05b16a4778ed7dfa1097aecc4c12;hb=e0a12bd3e2415e73e0a49c7df264cef1786daca1;hp=c844a44948d37b359f2150959eb5b7c64114edb8;hpb=8db36e3a919463523f02e9504b255b3b48938657;p=grml-scripts.git diff --git a/usr_sbin/grml-hostname b/usr_sbin/grml-hostname index c844a44..cc429cd 100755 --- a/usr_sbin/grml-hostname +++ b/usr_sbin/grml-hostname @@ -4,7 +4,7 @@ # Authors: (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Die Feb 13 12:16:57 CET 2007 [mika] +# Latest change: Sam Okt 27 23:43:06 CEST 2007 [mika] ################################################################################ source /etc/grml/script-functions @@ -39,6 +39,7 @@ fi case $retval in 0) echo "$HOSTNAME" > /etc/hostname + echo "$HOSTNAME" > /etc/mailname sed -i "s/^127.0.0.1[ \t]*$OLDHOSTNAME[ \t]*localhost/127.0.0.1 $HOSTNAME localhost/" /etc/hosts sed -i "s/^::1[ \t]*ip6-localhost ip6-loopback[ \t]*$OLDHOSTNAME/::1 ip6-localhost ip6-loopback $HOSTNAME/" /etc/hosts POSTFIX=''