diff options
author | Javier Viguera <javier.viguera@digi.com> | 2013-02-20 16:09:17 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-25 05:58:19 -0800 |
commit | 16bbc476e6851ec3995882f2dce20a60c8467077 (patch) | |
tree | 41392b3ae2f97fa624665ae0b6f6e623b8c77251 /meta/recipes-core | |
parent | ace5a940dc7396f9f19eb4390ddd0ea5bd52268e (diff) | |
download | poky-16bbc476e6851ec3995882f2dce20a60c8467077.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: 94c9ced84aa201e808e46e129bf14f328ff5f3e4)
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.bb | 2 |
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 () { | |||
129 | printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue | 129 | printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue |
130 | printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net | 130 | printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net |
131 | fi | 131 | fi |
132 | echo "\n \l" >> ${D}${sysconfdir}/issue | 132 | printf "\\\n \\\l\n" >> ${D}${sysconfdir}/issue |
133 | echo >> ${D}${sysconfdir}/issue | 133 | echo >> ${D}${sysconfdir}/issue |
134 | echo "%h" >> ${D}${sysconfdir}/issue.net | 134 | echo "%h" >> ${D}${sysconfdir}/issue.net |
135 | echo >> ${D}${sysconfdir}/issue.net | 135 | echo >> ${D}${sysconfdir}/issue.net |