Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] activating swap by udev event
Date: Thu, 01 Jul 2010 15:27:30
Message-Id: 20100701162653.592b261c@zaphod.digimed.co.uk
In Reply to: Re: [gentoo-user] activating swap by udev event by SpaceCake
1 On Thu, 1 Jul 2010 17:17:15 +0200, SpaceCake wrote:
2
3 > I've never created udev rule so the usal way does not tell me too
4 > much :) I've checked the net for examples but it looks like very
5 > complicated for me :)
6
7 http://www.reactivated.net/writing_udev_rules.html
8
9 > My usb stick looks like this
10 >
11 > Bus 007 Device 015: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash
12 > Flash Drive
13 >
14 > Can you share with me some example how can I use this info on udev
15 > rules?
16
17 SUBSYSTEMS=="usb", KERNEL=="sd[a-z]1", ATTRS{idVendor}=="058f", ATTRS{idProduct}=="6387", RUN="/path/to/your/script"
18
19 That's all on one line.
20
21 --
22 Neil Bothwick
23
24 Like an atheist in a grave: all dressed up and no place to go.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] activating swap by udev event SpaceCake <spacecakex@×××××.com>