]> code.ossystems Code Review - openembedded-core.git/commitdiff
lsbinitscripts: Patch file functions for confirming to an lsb image
authorXiaofeng Yan <xiaofeng.yan@windriver.com>
Mon, 28 May 2012 07:38:32 +0000 (15:38 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Jun 2012 21:51:23 +0000 (22:51 +0100)
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>
meta/recipes-extended/lsb/lsbinitscripts/functions.patch [new file with mode: 0644]

diff --git a/meta/recipes-extended/lsb/lsbinitscripts/functions.patch b/meta/recipes-extended/lsb/lsbinitscripts/functions.patch
new file mode 100644 (file)
index 0000000..aa63cec
--- /dev/null
@@ -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