X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F18hostname;h=446bc2357c1fe21495dc602dd92dc5839d3ae564;hb=c303d09e10ef3774540af4b91d0f25bf8f3c1981;hp=ac3538972dd55c7829c7430431df499211acb57b;hpb=cb896241d0ec8eb2bba0cecd11de3500869176a6;p=live-boot-grml.git diff --git a/scripts/live-bottom/18hostname b/scripts/live-bottom/18hostname index ac35389..446bc23 100755 --- a/scripts/live-bottom/18hostname +++ b/scripts/live-bottom/18hostname @@ -31,11 +31,11 @@ log_begin_msg "Setting hostname..." # live-initramfs script -echo "$HOSTNAME" > /root/etc/hostname +echo "${HOSTNAME}" > /root/etc/hostname cat >> /root/etc/hosts << EOF 127.0.0.1 localhost -127.0.1.1 $HOSTNAME +127.0.1.1 ${HOSTNAME} # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback @@ -46,4 +46,6 @@ ff02::2 ip6-allrouters ff02::3 ip6-allhosts EOF +hostname "${HOSTNAME}" + log_end_msg