From: Chris Lamb Date: Tue, 30 Sep 2008 23:56:55 +0000 (+0100) Subject: Use "test -s" instead of testing file availability and size. X-Git-Tag: debian/2.0.15-1~415 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=2b0b270f2445897b6137fbe48919097ca42e9c9e;p=live-boot-grml.git Use "test -s" instead of testing file availability and size. --- 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