From 94c9ced84aa201e808e46e129bf14f328ff5f3e4 Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Wed, 20 Feb 2013 16:09:17 +0100 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-core/base-files/base-files_3.0.14.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/recipes-core') 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 -- cgit v1.2.3