You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At boot /etc/hotplug.d scripts are not triggered by kernel events.
If we have a HDD/usb printer atached to an usb port, at boot, those scripts are not executed. However when we add/remove it later, after boot those scripts are executed properly.
hotplug "coldplug" happens on early stage of booting, after preinit, but before modules are loaded. Maybe you need to get another hotplug event after the needed module was loaded. You might need to check other subsystem than hotplug.d/usb as hotplug.d/usbmisc or hotplug.d/block.
During early stage, you cannot use logger. You might need to debug your script echoing to a file: echo xxx >>/tmp/log.txt or to dmesg: echo xxx >>/dev/kmsg
hpapagaj:
At boot /etc/hotplug.d scripts are not triggered by kernel events.
If we have a HDD/usb printer atached to an usb port, at boot, those scripts are not executed. However when we add/remove it later, after boot those scripts are executed properly.
Same problem as here:
[[https://dev.openwrt.org/ticket/18116|https://dev.openwrt.org/ticket/18116]]
I am using this hotplug script:
https://www.all4os.com/router/add-multiple-usb-printers-to-openwrt-firmware-router-via-p910nd-using-hotplug.html
The text was updated successfully, but these errors were encountered: