Patchwork [meta-fsl-ppc,master/dylan] base-files:fix the command line wrap around issue

login
register
mail settings
Submitter Zongchun Yu
Date May 17, 2013, 10:31 a.m.
Message ID <1368786716-17778-1-git-send-email-b40527@freescale.com>
Download mbox | patch
Permalink /patch/50041/
State Superseded
Headers show

Comments

Zongchun Yu - May 17, 2013, 10:31 a.m.
From: Zongchun Yu <b40527@freescale.com>

when the character number of cmdline is more than 80. the following character should
go to a new line. rather than cover the prompt and the inputting character before.

Signed-off-by: Zongchun Yu <b40527@freescale.com>
---
 recipes-core/base-files/base-files_3.0.14.bbappend |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100644 recipes-core/base-files/base-files_3.0.14.bbappend
Otavio Salvador - May 17, 2013, 1:18 p.m.
On Fri, May 17, 2013 at 7:31 AM,  <b40527@freescale.com> wrote:
> From: Zongchun Yu <b40527@freescale.com>
>
> when the character number of cmdline is more than 80. the following character should
> go to a new line. rather than cover the prompt and the inputting character before.
>
> Signed-off-by: Zongchun Yu <b40527@freescale.com>

Please resend it for master. It might be change in OE-Core and avoid
this in the BSP layer.

For now, NACK!

--
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

Patch

diff --git a/recipes-core/base-files/base-files_3.0.14.bbappend b/recipes-core/base-files/base-files_3.0.14.bbappend
new file mode 100644
index 0000000..5401e99
--- /dev/null
+++ b/recipes-core/base-files/base-files_3.0.14.bbappend
@@ -0,0 +1,8 @@ 
+do_install_append () {
+   echo "export COLUMNS=80" >> ${D}${sysconfdir}/profile
+   install -d ${D}/home/root
+   echo "export COLUMNS=2000" >> ${D}/home/root/.profile
+   echo "if [ -f /usr/bin/resize ]; then /usr/bin/resize > /dev/null; fi" >> ${D}/home/root/.profile
+}
+
+FILES_${PN} += "/home/root/.profile"