summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
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