summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/base-files
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 /meta/recipes-core/base-files
parenta54d4ae89e0b92c413de7e8e1f52eb50ccdf192b (diff)
downloadpoky-772da6e948f22ebca4c925972678e4ab498b8a09.tar.gz
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>
Diffstat (limited to 'meta/recipes-core/base-files')
-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 () {
123 printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue 123 printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue
124 printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net 124 printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net
125 fi 125 fi
126 echo "\n \l" >> ${D}${sysconfdir}/issue 126 printf "\\\n \\\l\n" >> ${D}${sysconfdir}/issue
127 echo >> ${D}${sysconfdir}/issue 127 echo >> ${D}${sysconfdir}/issue
128 echo "%h" >> ${D}${sysconfdir}/issue.net 128 echo "%h" >> ${D}${sysconfdir}/issue.net
129 echo >> ${D}${sysconfdir}/issue.net 129 echo >> ${D}${sysconfdir}/issue.net