summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2008-10-01 00:56:55 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:02 +0100
commit2b0b270f2445897b6137fbe48919097ca42e9c9e (patch)
tree8c2366480e5d723c657b6f97291369bc95d00aae /scripts
parent116f7ddd2e6ebb1377474da592b7d43604e7b166 (diff)
downloadlive-boot-2b0b270f2445897b6137fbe48919097ca42e9c9e.tar.gz
live-boot-2b0b270f2445897b6137fbe48919097ca42e9c9e.zip
Use "test -s" instead of testing file availability and size.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live-bottom/06hostname2
1 files changed, 1 insertions, 1 deletions
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