Gentoo Archives: gentoo-user

From: "Stéphane Guedon" <stephane@××××××××××.eu>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] kdm & french keyboard
Date: Sat, 17 Jul 2010 21:07:16
Message-Id: 201007172217.32987.stephane@22decembre.eu
In Reply to: Re: [gentoo-user] kdm & french keyboard by Alan McKinnon
1 Le Wednesday 14 July 2010 22:29:43, Alan McKinnon a écrit :
2 > On Wednesday 14 July 2010 22:12:32 Dale wrote:
3 > > Alan McKinnon wrote:
4 > > > On Wednesday 14 July 2010 09:58:02 Stéphane Guedon wrote:
5 > > >> I agree with you, but I like to make things in order with the rules
6 > > >> (without relation to udev).
7 > > >>
8 > > >> But I don't like udev, its syntax is really hard to understand for
9 > > >> user !
10 > > >
11 > > > Dale, here's your chance to jump in and comment.
12 > > >
13 > > > This user *obviously* never had to deal with hal.
14 > >
15 > > Oh crap. You mean udev uses xml config files too? Well, at least udev
16 > > hasn't broke my keyboard and mouse. lol I don't have to much trouble
17 > > with udev. Heck, the one time I did, I deleted all the config files and
18 > > re-emerged the thing. Worked great then. I think one got messed up
19 > > somehow.
20 > >
21 > > Dale
22 > >
23 > > :-) :-)
24 >
25 > No, not XML. It uses something MUCH better. It uses this:
26 >
27 > $ cat rules.d/70-persistent-cd.rules
28 > # This file was automatically generated by the /lib64/udev/write_cd_rules
29 > # program, probably run by the cd-aliases-generator.rules rules file.
30 > #
31 > # You can modify it, as long as you keep each rule on a single line
32 > # and set the $GENERATED variable.
33 >
34 > # DVD+-RW_AD-7640A (pci-0000:00:1f.1-scsi-0:0:0:0)
35 > ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-scsi-0:0:0:0",
36 > SYMLINK+="cdrom", ENV{GENERATED}="1"
37 > ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-scsi-0:0:0:0",
38 > SYMLINK+="cdrw", ENV{GENERATED}="1"
39 > ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-scsi-0:0:0:0",
40 > SYMLINK+="dvd", ENV{GENERATED}="1"
41 > ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-scsi-0:0:0:0",
42 > SYMLINK+="dvdrw", ENV{GENERATED}="1"
43 > # Mass_Storage (pci-0000:00:1d.0-usb-0:2:1.2-scsi-0:0:0:0)
44 > SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
45 > ENV{ID_SERIAL}=="HUAWEI_Mass_Storage-0:0", SYMLINK+="cdrom1",
46 > ENV{GENERATED}="1"
47 >
48 >
49 >
50 > See how fantastic this is? See how this conforms to The One True (Unix)
51 > Way?
52 >
53 > See how it looks nothing like XML (invented by a Windows user, obviously),
54 > and actually looks a lot like perl with regexes?
55 >
56 > On second thoughts, it looks nothing like perl. There aren't enough $, @
57 > and % symbols in it. But the regex bit stands.
58 >
59 > :-)
60
61 Thind this un-understandable !
62
63 --
64 Stéphane Guedon
65 page web : http://www.22decembre.eu/
66 carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf
67 clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc

Attachments

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

Replies

Subject Author
Re: [gentoo-user] kdm & french keyboard Alan McKinnon <alan.mckinnon@×××××.com>