Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Do if-post-up.d and if-pre-down.d belong in the device table?
@ 2013-08-31 17:59 Danomi Manchego
  2013-09-08 19:57 ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Danomi Manchego @ 2013-08-31 17:59 UTC (permalink / raw)
  To: buildroot

Peter, Gustavo,

I was looking into some if-up/down stuff, and stumbled on this commit that
added if-post-up.d and if-pre-down.d to the device_table.txt:

http://lists.busybox.net/pipermail/buildroot/2012-April/053214.html

But in actuality, busybox does not execute scripts from those places.
 Rather, the busybox change was to treat "post-up" and "pre-down" key words
as aliases for "up" and "down", just like the full-blown ifupdown-0.6.16.
 I.e., if you search for the underlying "execute_all" operations in either
busybox-1.21.0/networking/ifupdown.c or in the upstream ifupdown, you will
see that only "pre-up", "up", "down, and "post-down" directory contents are
executed, and that "up" scripts are invoked after the up action has
occurred, and the "down" scripts are run before the down action has
occurred - giving them the roles of "post-up" and "pre-down".

I think having the extra two directories in the device table might mislead
people into thinking that scripts there will be executed.  Or have I
misunderstood something?  For sure, it's not executing scripts from those
places with busybox-1.21.1 ...

FYI, the busybox commit that added the "post-up" and "pre-down" support can
be reviewed at:

http://lists.busybox.net/pipermail/busybox-cvs/2012-April/033401.html


Danomi -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130831/def972ea/attachment.html>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-09 11:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-31 17:59 [Buildroot] Do if-post-up.d and if-pre-down.d belong in the device table? Danomi Manchego
2013-09-08 19:57 ` Peter Korsgaard
2013-09-09 11:59   ` Gustavo Zacarias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox