diff options
author | Matthieu Crapet <Matthieu.Crapet@ingenico.com> | 2014-05-06 14:17:51 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-08 12:56:41 +0100 |
commit | 350c7c63c05a977158da91b4e06f84a6fb84a6ee (patch) | |
tree | 93cd809be028adc64af798ee984eb796691854cd | |
parent | e6a25f3377f75d995c996374e155e10ced519dce (diff) | |
download | openembedded-core-350c7c63c05a977158da91b4e06f84a6fb84a6ee.tar.gz openembedded-core-350c7c63c05a977158da91b4e06f84a6fb84a6ee.tar.bz2 openembedded-core-350c7c63c05a977158da91b4e06f84a6fb84a6ee.zip |
sysvinit-inittab: avoid pipe with grep
Replace:
cat <file> | grep xxx
By:
grep xxx <file>
Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r-- | meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb | 2 |
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 for i in $tmp do j=`echo ${i} | sed s/^.*\;//g` - if [ -z "`cat /proc/consoles | grep ${j}`" ]; then + if [ -z "`grep ${j} /proc/consoles`" ]; then sed -i /^.*${j}$/d /etc/inittab fi done |