[Buildroot] Run a custom script after USB mount

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Apr 18 12:36:54 UTC 2015


Dear Santhosh Ramani,

On Fri, 17 Apr 2015 11:37:41 -0500, Santhosh Ramani wrote:

> I checked the daemons that are running, and it seems udev is running.
> However, I do see /sbin/mdev and /sbin/udevd, so not entirely sure which
> one is running. Under System Configuration /dev management, I do have eudev
> selected rather than mdev.
> 
> But regardless, shouldn't the script execute when USB is detected. I see
> that it gets mounted properly at /media/usb0 but the script doesn't seem to
> run.

You may want to try 'udevadm --monitor' or something similar to debug
the udev events.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list