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 :-)

mdev is underestimated. its awesome. :-)

Natanael Copa

-- 
[email protected] mailing list

Reply via email to