summaryrefslogtreecommitdiffstats
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-03-01 15:38:48 +0000
commit772da6e948f22ebca4c925972678e4ab498b8a09 (patch)
tree8e3ab5b281efdf1a5adefe20cf4e4b5baf7ec67e
parenta54d4ae89e0b92c413de7e8e1f52eb50ccdf192b (diff)
downloadpoky-772da6e948f22ebca4c925972678e4ab498b8a09.tar.gz
poky-772da6e948f22ebca4c925972678e4ab498b8a09.tar.bz2
poky-772da6e948f22ebca4c925972678e4ab498b8a09.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. (From OE-Core rev: 52969714484fc96f6ece928304913b8f3ae30314) Signed-off-by: Javier Viguera <javier.viguera@digi.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 ba355ee07c..0b21bc8bcc 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
@@ -123,7 +123,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