[PATCH] halt: add option to call telinit when using external init
Denys Vlasenko
vda.linux at googlemail.com
Mon Jul 27 21:00:46 UTC 2009
On Monday 27 July 2009 14:04, Alexander Shishkin wrote:
> > + } else if (ENABLE_FEATURE_CALL_TELINIT) {
> > + /* runlevels:
> > + * 0 == shutdown
> > + * 6 == reboot */
> > + const char *const args[] = {
> >
> > static?
> Yep.
>
> >
> > + "telinit",
> >
> > and if ENABLE_FEATURE_CALL_TELINIT is something completely different?
> I'm not very good at kbuild and friends, therefore I assumed that bool
> means yes or no.
Opps. I meant CONFIG_TELINIT_PATH.
It's better to pass CONFIG_TELINIT_PATH as 0th param
than "telinit"
+ rc = execlp(CONFIG_TELINIT_PATH,
+ CONFIG_TELINIT_PATH,
--
vda
More information about the busybox
mailing list