initscripts: add warning and begin functions to lsb_log_message

Some init scripts call a "begin" or "warning" function to log early init
phase messages, e.g. openvswitch-controller.  These functions are not
part of the default /etc/init.d/functions script, which is provided by
oe-core's lsb pkg.  Append these two missing commands to
/etc/init.d/functions during the install phase.

Signed-off-by: Paul Barrette <paul.barrette@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
Paul Barrette 2013-10-29 16:40:27 -04:00 committed by Bruce Ashfield
parent 7cdddd5104
commit cafc94c4a2

View File

@ -7,4 +7,10 @@ do_install_append() {
echo failure \(\) \{ >> ${D}${sysconfdir}/init.d/functions
echo \ \ \ \ echo \$* >> ${D}${sysconfdir}/init.d/functions
echo \} >> ${D}${sysconfdir}/init.d/functions
echo warning \(\) \{ >> ${D}${sysconfdir}/init.d/functions
echo \ \ \ \ echo \$* >> ${D}${sysconfdir}/init.d/functions
echo \} >> ${D}${sysconfdir}/init.d/functions
echo begin \(\) \{ >> ${D}${sysconfdir}/init.d/functions
echo \ \ \ \ echo \$* >> ${D}${sysconfdir}/init.d/functions
echo \}
}