Gentoo Archives: gentoo-embedded

From: Peter Poulsen <peter@××××××.dk>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] Getting "new device" events
Date: Fri, 09 Feb 2007 11:30:11
Message-Id: <46250.60d8:4300:0:0:800::.1171020558.squirrel@mail.pgpoulsen.dk>
In Reply to: Re: [gentoo-embedded] Getting "new device" events by Natanael Copa
1 <snip>
2 >>
3 >> In udev I would use the RUN+=... argument in the udev rule, but I'm
4 >> looking for an alternativ.
5 >
6 > You can run whatever code you want when a device is attatched or
7 > detattched with mdev.
8 >
9 > /etc/mdev.conf:
10 >
11 > sd[a-z][0-9]* root:disk 0660 */usr/local/bin/newusbdisk.sh
12 >
13 >
14 > Wil execute /usr/local/bin/newusbdisk.sh every time an usbdisk is either
15 > attatched or detached.
16 >
17 >
18 Thanks. I (as you probably guessed) didn't know that :-)
19
20 /peter
21
22 --
23 gentoo-embedded@g.o mailing list