From 116f7ddd2e6ebb1377474da592b7d43604e7b166 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Wed, 1 Oct 2008 00:56:30 +0100 Subject: Use "grep -qs" over "grep -q" for compatibility (see grep(1)) --- scripts/live-bottom/06hostname | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/live-bottom/06hostname') 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 -- cgit v1.2.3