summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorMatthieu Crapet <Matthieu.Crapet@ingenico.com>2014-05-06 14:17:51 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-08 13:00:33 +0100
commit1150ef1879ac66776296c8f738bf4aa5cb735f54 (patch)
tree70c1fb53aa05e2fae38de5273358b6be6747c869 /meta/recipes-core
parent44ba0766d5366bdb589373011c2496cc999af012 (diff)
downloadpoky-1150ef1879ac66776296c8f738bf4aa5cb735f54.tar.gz
sysvinit-inittab: avoid pipe with grep
Replace: cat <file> | grep xxx By: grep xxx <file> (From OE-Core rev: 350c7c63c05a977158da91b4e06f84a6fb84a6ee) Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
index 30641dac88..c3244b4602 100644
--- a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
+++ b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
@@ -54,7 +54,7 @@ if [ "x$D" = "x" ] && [ -e /proc/consoles ]; then
54 for i in $tmp 54 for i in $tmp
55 do 55 do
56 j=`echo ${i} | sed s/^.*\;//g` 56 j=`echo ${i} | sed s/^.*\;//g`
57 if [ -z "`cat /proc/consoles | grep ${j}`" ]; then 57 if [ -z "`grep ${j} /proc/consoles`" ]; then
58 sed -i /^.*${j}$/d /etc/inittab 58 sed -i /^.*${j}$/d /etc/inittab
59 fi 59 fi
60 done 60 done