summaryrefslogtreecommitdiff
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorMatthieu Crapet <Matthieu.Crapet@ingenico.com>2014-05-06 14:17:49 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-08 12:56:41 +0100
commit3bfaea36a4484f1db0340cd67f7783ccec23c738 (patch)
tree5025a7119dbc8a43af12c15e5bb86b0d0eefb39d /meta/recipes-bsp
parent49345d83f280da13b7993971a336c6176587961d (diff)
downloadopenembedded-core-3bfaea36a4484f1db0340cd67f7783ccec23c738.tar.gz
openembedded-core-3bfaea36a4484f1db0340cd67f7783ccec23c738.tar.bz2
openembedded-core-3bfaea36a4484f1db0340cd67f7783ccec23c738.zip
apmd: avoid pipe with sed
Replace: cat <file> | sed -e xxx By: sed -e xxx <file> Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r--meta/recipes-bsp/apmd/apmd_3.2.2-14.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-bsp/apmd/apmd_3.2.2-14.bb b/meta/recipes-bsp/apmd/apmd_3.2.2-14.bb
index 8c4b75eb6d..ab7de65cf0 100644
--- a/meta/recipes-bsp/apmd/apmd_3.2.2-14.bb
+++ b/meta/recipes-bsp/apmd/apmd_3.2.2-14.bb
@@ -65,7 +65,7 @@ do_install() {
oe_libinstall -so libapm ${D}${libdir}
install -m 0644 apm.h ${D}${includedir}
- cat ${WORKDIR}/init | sed -e 's,/usr/sbin,${sbindir},g; s,/etc,${sysconfdir},g;' > ${D}${sysconfdir}/init.d/apmd
+ sed -e 's,/usr/sbin,${sbindir},g; s,/etc,${sysconfdir},g;' ${WORKDIR}/init > ${D}${sysconfdir}/init.d/apmd
chmod 755 ${D}${sysconfdir}/init.d/apmd
install -d ${D}${systemd_unitdir}/system