[oe-commits] Xiaofeng Yan : lsbinitscripts: Patch file functions for confirming to an lsb image

git at git.openembedded.org git at git.openembedded.org
Tue Jun 5 21:57:58 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 4b829c42ffaa878537fa2005e4d80324515a5ba8
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=4b829c42ffaa878537fa2005e4d80324515a5ba8

Author: Xiaofeng Yan <xiaofeng.yan at windriver.com>
Date:   Mon May 28 15:38:32 2012 +0800

lsbinitscripts: Patch file functions for confirming to an lsb image

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 at windriver.com>

---

 .../lsb/lsbinitscripts/functions.patch             |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-extended/lsb/lsbinitscripts/functions.patch b/meta/recipes-extended/lsb/lsbinitscripts/functions.patch
new file mode 100644
index 0000000..aa63cec
--- /dev/null
+++ b/meta/recipes-extended/lsb/lsbinitscripts/functions.patch
@@ -0,0 +1,11 @@
+--- a/rc.d/init.d/functions	2009-12-10 05:24:11.000000000 +0800
++++ b/rc.d/init.d/functions.new	2012-06-01 16:57:12.651229387 +0800
+@@ -16,7 +16,7 @@
+ # 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





More information about the Openembedded-commits mailing list