summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/06hostname
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2008-10-01 00:56:30 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:02 +0100
commit116f7ddd2e6ebb1377474da592b7d43604e7b166 (patch)
treeac322b080e40fa2f66e747ae0f4661b4ee49d07d /scripts/live-bottom/06hostname
parent83f906b640856660217698523e50d948eddb3e1b (diff)
downloadlive-boot-116f7ddd2e6ebb1377474da592b7d43604e7b166.tar.gz
live-boot-116f7ddd2e6ebb1377474da592b7d43604e7b166.zip
Use "grep -qs" over "grep -q" for compatibility (see grep(1))
Diffstat (limited to 'scripts/live-bottom/06hostname')
-rwxr-xr-xscripts/live-bottom/06hostname2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/live-bottom/06hostname b/scripts/live-bottom/06hostname
index 75ea801..ba71fce 100755
--- 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
-if [ ! -f /root/etc/hostname ] || grep -q localhost\.localdomain /root/etc/hostname
+if [ ! -f /root/etc/hostname ] || grep -qs localhost\.localdomain /root/etc/hostname
then
echo "${HOSTNAME}" > /root/etc/hostname
else