[Buildroot] package/hotplug

Will Newton will.newton at gmail.com
Thu Aug 19 09:26:22 UTC 2010

On Thu, Aug 19, 2010 at 1:43 AM, H Hartley Sweeten
<hartleys at visionengravers.com> wrote:
> Hello all,
> I am trying to get USB memory stick hotplugging to work on my busybox system.  I
> would like to be able to attach a memory stick and have the system auto mount the
> drive.
> I assumed that I would need to enable hotplug package to do this but it is normally
> disabled by BR2_PACKAGE_BUSYBOX_SHOW_OTHERS.  I have looked thru the busybox
> configuration and can't find anything that would replace the hotplug app.  Did I
> overlook something?

mdev from busybox should do what you need. You'll need a line like
this in your inittab:

::sysinit:/bin/echo /sbin/mdev > /proc/sys/kernel/hotplug

It's not as flexible as udev, but should do what you need.

More information about the buildroot mailing list