summaryrefslogtreecommitdiff
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorJavier Viguera <javier.viguera@digi.com>2013-02-20 16:09:17 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-25 05:49:12 -0800
commit94c9ced84aa201e808e46e129bf14f328ff5f3e4 (patch)
tree1fecf1401d21a0ad5eb9f7441ec241d86de1e6fb /meta/recipes-core
parentc2d456cb79f42eefd50605d72361ded823568d1b (diff)
downloadopenembedded-core-94c9ced84aa201e808e46e129bf14f328ff5f3e4.tar.gz
openembedded-core-94c9ced84aa201e808e46e129bf14f328ff5f3e4.tar.bz2
openembedded-core-94c9ced84aa201e808e46e129bf14f328ff5f3e4.zip
base-files: fix 'dash' expanding '\n'
Dash's 'echo' command expands '\n' by default, so the '\n' is not included in the '/etc/issue' file. Use 'printf' for portability between different shells. Signed-off-by: Javier Viguera <javier.viguera@digi.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/base-files/base-files_3.0.14.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb b/meta/recipes-core/base-files/base-files_3.0.14.bb
index 6a3db50132..e7a9d82133 100644
--- a/meta/recipes-core/base-files/base-files_3.0.14.bb
+++ b/meta/recipes-core/base-files/base-files_3.0.14.bb
@@ -129,7 +129,7 @@ do_install_basefilesissue () {
printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue
printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net
fi
- echo "\n \l" >> ${D}${sysconfdir}/issue
+ printf "\\\n \\\l\n" >> ${D}${sysconfdir}/issue
echo >> ${D}${sysconfdir}/issue
echo "%h" >> ${D}${sysconfdir}/issue.net
echo >> ${D}${sysconfdir}/issue.net