[SCM] Debian Live initramfs hook branch, master, updated. 1.139.1-3-14-gbb27306

Chris Lamb lamby at debian.org
Wed Oct 1 00:05:27 UTC 2008


The following commit has been merged in the master branch:
commit 04f73b8eb6020f8dba3582707be14db1d86f14d0
Author: Chris Lamb <lamby at debian.org>
Date:   Wed Oct 1 00:56:55 2008 +0100

    Use "test -s" instead of testing file availability and size.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>

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

-- 
Debian Live initramfs hook



More information about the debian-live-changes mailing list