diff options
author | Xiaofeng Yan <xiaofeng.yan@windriver.com> | 2012-02-03 14:39:43 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-03 15:54:41 +0000 |
commit | 05682408ef7fca6029e48a18b2f660eeec65a4ec (patch) | |
tree | b50b4df26978f46dd64b1042af67d03f26933131 /meta/recipes-extended/lsb | |
parent | 2042d52ff5425e864740b330adc27c2632cc5dc7 (diff) | |
download | openembedded-core-05682408ef7fca6029e48a18b2f660eeec65a4ec.tar.gz openembedded-core-05682408ef7fca6029e48a18b2f660eeec65a4ec.tar.bz2 openembedded-core-05682408ef7fca6029e48a18b2f660eeec65a4ec.zip |
init-functions: Add two functions
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 <xiaofeng.yan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lsb')
-rwxr-xr-x | 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 bf424dde1c..e15827ad52 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 "$@" +} |