[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] halt: add option to call telinit when using external init
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2009-07-27 21:00:46
Message-ID: 200907272300.46139.vda.linux () googlemail ! com
[Download RAW message or body]

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
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic