[meta-freescale] [PATCH] [meta-fsl-ppc, master]base-files:fix the command line wrap around issue

Liu Ting-B28495 B28495 at freescale.com
Mon May 20 03:15:18 PDT 2013


> -----Original Message-----
> From: Yu Zongchun-B40527
> Sent: Monday, May 20, 2013 11:21 AM
> To: meta-freescale at yoctoproject.org
> Cc: Luo Zhenhua-B19537; Liu Ting-B28495; Guo Chunrong-B40290; Yu
> Zongchun-B40527
> Subject: [PATCH] [meta-fsl-ppc,master]base-files:fix the command line
> wrap around issue
> 
> From: Zongchun Yu <b40527 at 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 at 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
> 
> 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

Home directory of root can be customized in Yocto. And what about other account?

> +   echo "if [ -f /usr/bin/resize ]; then /usr/bin/resize > /dev/null;
> +fi" >> ${D}/home/root/.profile }
> +
> +FILES_${PN} += "/home/root/.profile"
> --
> 1.6.2.5





More information about the meta-freescale mailing list