[OpenWrt-Devel] [PATCH] procd: hotplug.json: allow passing hotplug events from all subsystems

Yousong Zhou yszhou4tech at gmail.com
Mon Nov 30 04:58:55 EST 2015

On 30 November 2015 at 17:50, John Crispin <blogic at openwrt.org> wrote:
> On 30/11/2015 10:33, Jo-Philipp Wich wrote:
>> Hi all,
>> as an intermediate solution we could simply allow qemu specific events.
>> I'm with John here that passing on uevents unfiltered is probably no
>> good idea.
>> ~ Jow
> yep, hence my idea about includes
> we could ship a "include /etc/hotplug.arch/*" and then any target can
> just place its custom files there. they would be available prior to
> overlay being available and wont clutter the main json file.
>         John

I just noticed that handle_expr callback of json_script_ctx was never
actually used.  In the specific case of hotplug events handling of
procd, we can just add a 'isdir' '/etc/hotplug.d/%SUBSYSTEM%' expr and
do the hotplug-call accordingly.  Well, now this needs to fix libubox
first so cc-ing Felix.

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list