projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
116f7dd
)
Use "test -s" instead of testing file availability and size.
author
Chris Lamb
<lamby@debian.org>
Tue, 30 Sep 2008 23:56:55 +0000
(
00:56
+0100)
committer
Daniel Baumann
<daniel@debian.org>
Wed, 9 Mar 2011 16:48:02 +0000
(17:48 +0100)
scripts/live-bottom/06hostname
patch
|
blob
|
history
diff --git
a/scripts/live-bottom/06hostname
b/scripts/live-bottom/06hostname
index
ba71fce
..
b14703a
100755
(executable)
--- 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
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
then
cat > /root/etc/hosts << EOF
127.0.0.1 localhost