From patchwork Fri Feb 3 06:39:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/2] init-functions: Add two functions Date: Fri, 03 Feb 2012 06:39:43 -0000 From: Xiaofeng Yan X-Patchwork-Id: 20615 Message-Id: To: From: Xiaofeng Yan Add log_begin_msg() and log_end_msg () in init-functions because some startup scripts need them. if there are not two functions, then error information will arise on screen. for example, $ /etc/init.d/avahi-daemon start /etc/init.d/avahi-daemon: line 161: log_begin_msg: command not found /etc/init.d/avahi-daemon: line 163: log_end_msg: command not found [YOCTO #1907] Signed-off-by: Xiaofeng Yan --- meta/recipes-extended/lsb/lsb/init-functions | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/meta/recipes-extended/lsb/lsb/init-functions b/meta/recipes-extended/lsb/lsb/init-functions index bf424dd..e15827a 100755 --- a/meta/recipes-extended/lsb/lsb/init-functions +++ b/meta/recipes-extended/lsb/lsb/init-functions @@ -30,3 +30,10 @@ log_warning_msg () { /etc/core-lsb/lsb_log_message warning "$@" } +log_begin_msg () { + /etc/core-lsb/lsb_log_message begin "$@" +} + +log_end_msg () { + /etc/core-lsb/lsb_log_message end "$@" +}