busybox mdev questions/problems with not deleting unplugged devices and execution support

Elliot F. elliotf-dev-busybox at gratuitous.net
Fri Oct 13 09:44:23 PDT 2006


Hello all,

I'm having a few problems when using mdev in busybox 1.2.1 on linux 
2.6.12 on arm (LE) built with a codesourcery toolchain (gcc 3.4).  I 
have registered mdev as the hotplug handler, and while it adds new 
(hotplugged) devices, it does not remove them when they are unplugged.

I also configured busybox with command execution support, and the 
commands I have configured in /etc/mdev.conf do not get activated. 
Perhaps someone could point out my mistake:

/etc/mdev.conf:
sd[a-z][0-9]*	0:0 600 */bin/touch /tmp/$MDEV

So I plug in a usb memory stick, and I see /dev/sdb1 appear with 600 
permissions, so I would like to think the filter is matching.  However, 
I don't see /tmp/sdb1 (or /tmp/sdb, for that matter.)  I unplug the usb 
memory stick, and I see the kernel message announcing the disconnect, 
but the device is still there.  I do have /bin/touch, and when I do 
'/bin/touch /tmp/fooey', it appears correctly.

Thank you in advance,

Elliot F.


More information about the busybox mailing list