* [PATCH] initscripts: add warning and begin functions to lsb_log_message
@ 2013-10-29 20:40 Paul Barrette
2013-10-30 3:05 ` Bruce Ashfield
0 siblings, 1 reply; 2+ messages in thread
From: Paul Barrette @ 2013-10-29 20:40 UTC (permalink / raw)
To: meta-virtualization, bruce.ashfield
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>
---
recipes-core/initscripts/initscripts_1.0.bbappend | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/recipes-core/initscripts/initscripts_1.0.bbappend b/recipes-core/initscripts/initscripts_1.0.bbappend
index 04d848d..02b5bc4 100644
--- a/recipes-core/initscripts/initscripts_1.0.bbappend
+++ b/recipes-core/initscripts/initscripts_1.0.bbappend
@@ -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 \}
}
--
1.8.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] initscripts: add warning and begin functions to lsb_log_message
2013-10-29 20:40 [PATCH] initscripts: add warning and begin functions to lsb_log_message Paul Barrette
@ 2013-10-30 3:05 ` Bruce Ashfield
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2013-10-30 3:05 UTC (permalink / raw)
To: Paul Barrette, meta-virtualization
On 13-10-29 4:40 PM, Paul Barrette wrote:
> 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>
> ---
> recipes-core/initscripts/initscripts_1.0.bbappend | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/recipes-core/initscripts/initscripts_1.0.bbappend b/recipes-core/initscripts/initscripts_1.0.bbappend
> index 04d848d..02b5bc4 100644
> --- a/recipes-core/initscripts/initscripts_1.0.bbappend
> +++ b/recipes-core/initscripts/initscripts_1.0.bbappend
> @@ -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
You didn't go the extra mile and line up that new ">>" !! :)
I've run into these myself, and actually hacked the initscript to avoid
issues .. but I like this better. So I'm just going to go ahead and merge
this right away.
Bruce
> + echo \ \ \ \ echo \$* >> ${D}${sysconfdir}/init.d/functions
> + echo \}
> }
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-30 3:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-29 20:40 [PATCH] initscripts: add warning and begin functions to lsb_log_message Paul Barrette
2013-10-30 3:05 ` Bruce Ashfield
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.