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
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox