diff options
author | Saul Wold <sgw@linux.intel.com> | 2012-12-13 19:04:58 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-19 17:55:07 +0000 |
commit | 756d84ad6482f803b30dc7cd60da23c5b6ce317d (patch) | |
tree | 9618e4c0427fe6e96e2e7e7d6d27df0161dfad5f /meta/recipes-extended/lsb/lsbinitscripts | |
parent | 690265b3e699da4859294982e34e1ceedd59b594 (diff) | |
download | poky-756d84ad6482f803b30dc7cd60da23c5b6ce317d.tar.gz |
lsbinitscripts: update to 9.43
(From OE-Core rev: a4a82b2ad55e2671cd1068727058754fe417f4f0)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lsb/lsbinitscripts')
-rw-r--r-- | meta/recipes-extended/lsb/lsbinitscripts/functions.patch | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/meta/recipes-extended/lsb/lsbinitscripts/functions.patch b/meta/recipes-extended/lsb/lsbinitscripts/functions.patch index 6d09d05427..a756d047ef 100644 --- a/meta/recipes-extended/lsb/lsbinitscripts/functions.patch +++ b/meta/recipes-extended/lsb/lsbinitscripts/functions.patch | |||
@@ -1,14 +1,26 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | 1 | Upstream-Status: Inappropriate [configuration] |
2 | 2 | ||
3 | Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> | 3 | Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> |
4 | --- a/rc.d/init.d/functions 2009-12-10 05:24:11.000000000 +0800 | 4 | Signed-off-by: Saul Wold <sgw@linux.intel.com> |
5 | +++ b/rc.d/init.d/functions.new 2012-06-01 16:57:12.651229387 +0800 | 5 | |
6 | @@ -16,7 +16,7 @@ | 6 | Index: initscripts-9.43/rc.d/init.d/functions |
7 | # Get a sane screen width | 7 | =================================================================== |
8 | [ -z "${COLUMNS:-}" ] && COLUMNS=80 | 8 | --- initscripts-9.43.orig/rc.d/init.d/functions |
9 | +++ initscripts-9.43/rc.d/init.d/functions | ||
10 | @@ -13,6 +13,7 @@ umask 022 | ||
11 | PATH="/sbin:/usr/sbin:/bin:/usr/bin" | ||
12 | export PATH | ||
9 | 13 | ||
10 | -[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)" | 14 | + |
11 | +[ -z "${CONSOLETYPE:-}" ] && [ -e /sbin/consoletype ] && CONSOLETYPE="$(/sbin/consoletype)" | 15 | if [ $PPID -ne 1 -a -z "$SYSTEMCTL_SKIP_REDIRECT" ] && \ |
16 | ( /bin/mountpoint -q /cgroup/systemd || /bin/mountpoint -q /sys/fs/cgroup/systemd ) ; then | ||
17 | case "$0" in | ||
18 | @@ -54,7 +55,7 @@ systemctl_redirect () { | ||
19 | [ -z "${COLUMNS:-}" ] && COLUMNS=80 | ||
12 | 20 | ||
13 | if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then | 21 | if [ -z "${CONSOLETYPE:-}" ]; then |
14 | . /etc/profile.d/lang.sh 2>/dev/null | 22 | - if [ -c "/dev/stderr" -a -r "/dev/stderr" ]; then |
23 | + if [ -c "/dev/stderr" -a -r "/dev/stderr" -a -e /sbin/consoletype ]; then | ||
24 | CONSOLETYPE="$(/sbin/consoletype < /dev/stderr 2>/dev/null)" | ||
25 | else | ||
26 | CONSOLETYPE="serial" | ||