From 2b0b270f2445897b6137fbe48919097ca42e9c9e Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Wed, 1 Oct 2008 00:56:55 +0100 Subject: Use "test -s" instead of testing file availability and size. --- scripts/live-bottom/06hostname | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3