X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F06hostname;h=ba71fcee39a0850473b2b2a4822190db32819c5c;hb=116f7ddd2e6ebb1377474da592b7d43604e7b166;hp=75ea8011c589a88666efbf3277cd03c46c774521;hpb=c00d324467314b6f4d6a1d6cc2d9a6ecfbd308cd;p=live-boot-grml.git diff --git a/scripts/live-bottom/06hostname b/scripts/live-bottom/06hostname index 75ea801..ba71fce 100755 --- a/scripts/live-bottom/06hostname +++ b/scripts/live-bottom/06hostname @@ -32,7 +32,7 @@ log_begin_msg "Setting hostname" # live-initramfs script # Change hostname only if it is not set -if [ ! -f /root/etc/hostname ] || grep -q localhost\.localdomain /root/etc/hostname +if [ ! -f /root/etc/hostname ] || grep -qs localhost\.localdomain /root/etc/hostname then echo "${HOSTNAME}" > /root/etc/hostname else