Gentoo Archives: gentoo-user

From: Dan Johansson <Dan.Johansson@×××.nu>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Nedd help with udev-rules.
Date: Sun, 21 Aug 2011 18:27:54
Message-Id: 201108212026.41680.Dan.Johansson@dmj.nu
1 Hi,
2
3 I need some help with writing udev-rules for capi.
4 After playing around some I decided to ask for help here as can't really get
5 it to work.
6
7 What I want ist the following:
8 /dev/capi20 68,0
9 /dev/capi/capi# 191,#
10
11 68,0 = Major 68, Minor 0
12 191,# = Major 191, Minor 0 untill 31
13
14 If I have no udev-rule I get the following:
15 /dev/capi 68,0
16 /dev/capi# 191,#
17
18 with 'ATTR{dev}="68:0", NAME="capi20" ' added I only get the following:
19 /dev/capi20 191,32
20
21 and with 'ATTR{dev}="191:[0-9]*", NAME="capi/capi%n" ' the following:
22 /dev/capi/capi 68,0
23 /dev/capi/capi# 191,#
24
25 And with both '"ATTR{dev}="68:0", NAME="capi20" ' and 'ATTR{dev}="191:
26 [0-9]*", NAME="capi/capi%n" ' this:
27 /dev/capi/capi 68,0
28 /dev/capi/capi# 191,#
29 (No change in comparison with only the 'ATTR{dev}=191:...' rule)
30
31 And if I change the order in the rules-file:
32 /dev/capi20 191,31
33
34
35 Can some udev-crack (or someone else) tell my what I am doing wrong?
36
37 Regards,
38 --
39 Dan Johansson, <http://www.dmj.nu>
40 ***************************************************
41 This message is printed on 100% recycled electrons!
42 ***************************************************

Replies

Subject Author
Re: [gentoo-user] Nedd help with udev-rules. Dan Johansson <Dan.Johansson@×××.nu>