summaryrefslogtreecommitdiff
path: root/scripts
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
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')
-rwxr-xr-xscripts/live-bottom/06hostname2
-rwxr-xr-xscripts/live-bottom/12fstab2
2 files changed, 2 insertions, 2 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
diff --git a/scripts/live-bottom/12fstab b/scripts/live-bottom/12fstab
index 2dba37a..f38eee7 100755
--- a/scripts/live-bottom/12fstab
+++ b/scripts/live-bottom/12fstab
@@ -33,7 +33,7 @@ log_begin_msg "Configuring fstab"
# live-initramfs script
# Create a fake fstab only if it is not already there
-if [ ! -f "${FSTAB}" ] || grep -q 'UNCONFIGURED FSTAB FOR BASE SYSTEM' "${FSTAB}"
+if [ ! -f "${FSTAB}" ] || grep -qs 'UNCONFIGURED FSTAB FOR BASE SYSTEM' "${FSTAB}"
then
cat >> ${FSTAB} << EOF
# /etc/fstab: static file system information.