On Fri, 2007-02-09 at 12:29 +0100, Peter Poulsen wrote:
> <snip>
> >>
> >> In udev I would use the RUN+=... argument in the udev rule, but I'm
> >> looking for an alternativ.
> >
> > You can run whatever code you want when a device is attatched or
> > detattched with mdev.
> >
> > /etc/mdev.conf:
> >
> > sd[a-z][0-9]*   root:disk 0660  */usr/local/bin/newusbdisk.sh
> >
> >
> > Wil execute /usr/local/bin/newusbdisk.sh every time an usbdisk is either
> > attatched or detached.
> >
> >
> Thanks. I (as you probably guessed) didn't know that :-)

I don't think it was mentioned but don't forget to set
sysctl -w kernel.hotplug=/sbin/mdev 
in order for everything to work.

-- 
Ned Ludd <[EMAIL PROTECTED]>
Gentoo Linux

-- 
[email protected] mailing list

Reply via email to