projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Correcting kdm live-autologin handling to not always append entries forever when...
[live-boot-grml.git]
/
scripts
/
live-bottom
/
06hostname
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
-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