[OpenWrt-Devel] Using procd for USB hotplug detection

2015-08-29 Thread Lazar Demin
Hi, I am trying to figure out how I can use procd to detect when a new usb device comes up. The wiki (http://wiki.openwrt.org/doc/techref/procd) was pretty vague on the proper usage of procd. The procd init script wiki (http://wiki.openwrt.org/inbox/procd-init-scripts) wasn't particularly

Re: [OpenWrt-Devel] Using procd for USB hotplug detection

2015-08-29 Thread Alexandru Ardelean
procd is for service handling mostly; so, start/stop/etc basically you'd need to have another service that does usb-device handling (of that device). what i'd do, is to write a hotplug script, add it under /etc/hotplug.d and then call whatever needs to be called from that script it can be a ubus

Re: [OpenWrt-Devel] Using procd for USB hotplug detection

2015-08-29 Thread John Crispin
use block-mount that is what its there for. On 29/08/2015 21:03, Alexandru Ardelean wrote: procd is for service handling mostly; so, start/stop/etc basically you'd need to have another service that does usb-device handling (of that device). what i'd do, is to write a hotplug script, add it