Gentoo Archives: gentoo-user

From: maxim wexler <blissfix@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] symlinking device with udev
Date: Tue, 17 Apr 2007 18:55:14
Message-Id: 142890.23793.qm@web31704.mail.mud.yahoo.com
1 Hi group,
2
3 New gentoo won't let me symlink device like so:
4
5 #ln -s /dev/parport0 /dev/lp0
6
7 Google says create file
8 /etc/udev/rules.d/10-local.rules
9 containing the line
10
11 KERNEL=="parport0" NAME="lp0"
12
13 Which creates the device no problem. However
14 /dev/parport0 is no more and
15
16 #udevinfo -a -p /dev/parport0
17
18 *and*
19
20 #udevinfot -a -p /dev/lp0
21
22 come up "device not found". Not complaining too
23 strenuously but curious. Is this normal behaviour?
24 Seems strange. Why the actual device and no symlink?
25
26 Another thing: from 50-udev.rules
27 <...>
28 # lp devices
29 KERNEL=="lp*", NAME="%k", GROUP="lp"
30 KERNEL=="irlpt", NAME="%k", GROUP="lp"
31 KERNEL=="usblp", NAME="%k", GROUP="lp"
32 KERNEL=="lp*", NAME="%k", GROUP="lp"
33 KERNEL=="parport*", NAME="%k", GROUP="lp"
34 <...>
35
36 Why doesn't that last line take care of the problem.
37 Is it meant only as a template?
38
39
40 -Maxim
41
42
43 __________________________________________________
44 Do You Yahoo!?
45 Tired of spam? Yahoo! Mail has the best spam protection around
46 http://mail.yahoo.com
47 --
48 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] symlinking device with udev Neil Bothwick <neil@××××××××××.uk>