diff options
| author | Chris Lamb <lamby@debian.org> | 2008-10-01 00:56:55 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:48:02 +0100 |
| commit | 2b0b270f2445897b6137fbe48919097ca42e9c9e (patch) | |
| tree | 8c2366480e5d723c657b6f97291369bc95d00aae /scripts | |
| parent | 116f7ddd2e6ebb1377474da592b7d43604e7b166 (diff) | |
| download | live-boot-2b0b270f2445897b6137fbe48919097ca42e9c9e.tar.gz live-boot-2b0b270f2445897b6137fbe48919097ca42e9c9e.zip | |
Use "test -s" instead of testing file availability and size.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/live-bottom/06hostname | 2 |
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 |
