X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F06hostname;h=b14703a98c0d138b5f2d433bbbb759018cbcb111;hb=24b9fd1c70013f5847d3a4658e56bd44534e7890;hp=ba71fcee39a0850473b2b2a4822190db32819c5c;hpb=116f7ddd2e6ebb1377474da592b7d43604e7b166;p=live-boot-grml.git diff --git a/scripts/live-bottom/06hostname b/scripts/live-bottom/06hostname index ba71fce..b14703a 100755 --- a/scripts/live-bottom/06hostname +++ b/scripts/live-bottom/06hostname @@ -41,7 +41,7 @@ else fi # Create /etc/hosts only if it is not present or empty -if [ ! -f /root/etc/hosts ] || [ "$(/root/usr/bin/stat -c %s root/etc/hosts)" == "0" ] +if [ ! -s /root/etc/hosts ] then cat > /root/etc/hosts << EOF 127.0.0.1 localhost