projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use "grep -qs" over "grep -q" for compatibility (see grep(1))
[live-boot-grml.git]
/
scripts
/
live-bottom
/
06hostname
diff --git
a/scripts/live-bottom/06hostname
b/scripts/live-bottom/06hostname
index
75ea801
..
ba71fce
100755
(executable)
--- a/
scripts/live-bottom/06hostname
+++ b/
scripts/live-bottom/06hostname
@@
-32,7
+32,7
@@
log_begin_msg "Setting hostname"
# live-initramfs script
# Change hostname only if it is not set
# live-initramfs script
# Change hostname only if it is not set
-if [ ! -f /root/etc/hostname ] || grep -q localhost\.localdomain /root/etc/hostname
+if [ ! -f /root/etc/hostname ] || grep -q
s
localhost\.localdomain /root/etc/hostname
then
echo "${HOSTNAME}" > /root/etc/hostname
else
then
echo "${HOSTNAME}" > /root/etc/hostname
else