Question on mdev's custom command invocation

Didier Kryn kryn at in2p3.fr
Thu Nov 17 12:39:24 UTC 2016


Le 17/11/2016 13:09, Peter Korsgaard a écrit :
> On Thu, Nov 17, 2016 at 11:02 AM, Didier Kryn <kryn at in2p3.fr> wrote:
>>> I'm assuming you already use environment variables in your script,
>>> e.g. $MDEV, $SEQNUM, etc Maybe you missed $ACTION, sounds like what
>>> you're looking for.
>>      Good to know that; https://git.busybox.net/busybox/plain/docs/mdev.txt
>> only mentions $MDEV .
> That is because those environment variables comes from the kernel when
> it invokes the hotplug helper (mdev):
>
> http://lxr.free-electrons.com/source/Documentation/driver-model/porting.txt#L375
>

     I knew that of course, how else could it work! But I seem idiotic 
enough to not have even imagined that mdev passed all these variables to 
its child.

     Thanks all.
                                     Didier



More information about the busybox mailing list