Patchwork [2/3] lsbinitscripts: Patch file functions for confirming to an lsb image

login
register
mail settings
Submitter Xiaofeng Yan
Date May 30, 2012, 1:47 a.m.
Message ID <f40370d050348df270f30f288422c77a30845848.1338284916.git.xiaofeng.yan@windriver.com>
Download mbox | patch
Permalink /patch/28907/
State New
Headers show

Comments

Xiaofeng Yan - May 30, 2012, 1:47 a.m.
From: Xiaofeng Yan <xiaofeng.yan@windriver.com>

Add the condition judgment to functions for avoiding to print error \
information when system start up at first.

[YOCTO #2133]

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
---
 .../lsb/lsbinitscripts/functions.patch             |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-extended/lsb/lsbinitscripts/functions.patch

Patch

diff --git a/meta/recipes-extended/lsb/lsbinitscripts/functions.patch b/meta/recipes-extended/lsb/lsbinitscripts/functions.patch
new file mode 100644
index 0000000..1906b27
--- /dev/null
+++ b/meta/recipes-extended/lsb/lsbinitscripts/functions.patch
@@ -0,0 +1,14 @@ 
+Upstream-Status: Inappropriate [embedded specific]
+Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
+--- a/rc.d/init.d/functions	2009-12-10 05:24:11.000000000 +0800
++++ b/rc.d/init.d/functions.new	2012-05-29 14:48:53.900229435 +0800
+@@ -16,7 +16,8 @@
+ # Get a sane screen width
+ [ -z "${COLUMNS:-}" ] && COLUMNS=80
+ 
+-[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"
++
++[ -z "${CONSOLETYPE:-}" ] && [ -e /sbin/consoletype ] && CONSOLETYPE="$(/sbin/consoletype)"
+ 
+ if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
+   . /etc/profile.d/lang.sh 2>/dev/null