Enabling Hotplug

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Tue Jul 19 23:25:20 PDT 2022

Can anyone please guide?
The OpenWRT version we are using is 21.02.1

-----Original Message-----
From: openwrt-devel <openwrt-devel-bounces at lists.openwrt.org> On Behalf Of Ravi Paluri (QUIC)
Sent: Tuesday, July 19, 2022 12:27 PM
To: openwrt-devel at lists.openwrt.org
Subject: Enabling Hotplug

WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.

Hi all,
    We are trying to enable Hotplug functionality.
We've our device node under "/dev/<device-node>", which gets created at boot-up.
SUBSYSTEM of this <device-node> is "subsys". Hence, I created a folder named "subsys" under "/etc/hotplug.d/" and I added a script at this location as per detailed @ https://openwrt.org/docs/guide-user/base-system/hotplug#usagetroubleshooting

I also modified "/etc/hotplug.json" file with below code but script under "/etc/hotplug.d/subsys" is not getting executed, possibly since we are not getting SUBSYSTEM trigger event?

         [ "and",
                 [ "eq", "SUBSYSTEM", "subsys" ],
                 [ "isdir", "/etc/hotplug.d/subsys" ]
         [ "exec", "/sbin/hotplug-call", "subsys" ]  ],

We've no clue why this trigger event is not getting fired.
Do we need to enable any kernel configuration flag? (We are using kernel 5.4 version.) or any package needs to selected under openwrt menu etc.
Any pointers on how to enable hotplug will be very helpful.


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

More information about the openwrt-bugs mailing list