1 |
Alan McKinnon wrote: |
2 |
> On Wednesday 14 July 2010 22:12:32 Dale wrote: |
3 |
> |
4 |
>> Alan McKinnon wrote: |
5 |
>> |
6 |
>>> On Wednesday 14 July 2010 09:58:02 Stéphane Guedon wrote: |
7 |
>>> |
8 |
>>>> I agree with you, but I like to make things in order with the rules |
9 |
>>>> (without relation to udev). |
10 |
>>>> |
11 |
>>>> But I don't like udev, its syntax is really hard to understand for user |
12 |
>>>> ! |
13 |
>>>> |
14 |
>>> Dale, here's your chance to jump in and comment. |
15 |
>>> |
16 |
>>> This user *obviously* never had to deal with hal. |
17 |
>>> |
18 |
>> Oh crap. You mean udev uses xml config files too? Well, at least udev |
19 |
>> hasn't broke my keyboard and mouse. lol I don't have to much trouble |
20 |
>> with udev. Heck, the one time I did, I deleted all the config files and |
21 |
>> re-emerged the thing. Worked great then. I think one got messed up |
22 |
>> somehow. |
23 |
>> |
24 |
>> Dale |
25 |
>> |
26 |
>> :-) :-) |
27 |
>> |
28 |
> No, not XML. It uses something MUCH better. It uses this: |
29 |
> |
30 |
> $ cat rules.d/70-persistent-cd.rules |
31 |
> # This file was automatically generated by the /lib64/udev/write_cd_rules |
32 |
> # program, probably run by the cd-aliases-generator.rules rules file. |
33 |
> # |
34 |
> # You can modify it, as long as you keep each rule on a single line |
35 |
> # and set the $GENERATED variable. |
36 |
> |
37 |
> # DVD+-RW_AD-7640A (pci-0000:00:1f.1-scsi-0:0:0:0) |
38 |
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-scsi-0:0:0:0", |
39 |
> SYMLINK+="cdrom", ENV{GENERATED}="1" |
40 |
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-scsi-0:0:0:0", |
41 |
> SYMLINK+="cdrw", ENV{GENERATED}="1" |
42 |
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-scsi-0:0:0:0", |
43 |
> SYMLINK+="dvd", ENV{GENERATED}="1" |
44 |
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-scsi-0:0:0:0", |
45 |
> SYMLINK+="dvdrw", ENV{GENERATED}="1" |
46 |
> # Mass_Storage (pci-0000:00:1d.0-usb-0:2:1.2-scsi-0:0:0:0) |
47 |
> SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", |
48 |
> ENV{ID_SERIAL}=="HUAWEI_Mass_Storage-0:0", SYMLINK+="cdrom1", |
49 |
> ENV{GENERATED}="1" |
50 |
> |
51 |
> |
52 |
> |
53 |
> See how fantastic this is? See how this conforms to The One True (Unix) Way? |
54 |
> |
55 |
> See how it looks nothing like XML (invented by a Windows user, obviously), and |
56 |
> actually looks a lot like perl with regexes? |
57 |
> |
58 |
> On second thoughts, it looks nothing like perl. There aren't enough $, @ and % |
59 |
> symbols in it. But the regex bit stands. |
60 |
> |
61 |
> :-) |
62 |
> |
63 |
> |
64 |
|
65 |
I'm glad deleting the config files and re-emerging worked for me then. |
66 |
It would certainly not work if I had to edit all that mess. Reminds me |
67 |
of chickens. You know, chicken scratch. lol |
68 |
|
69 |
Dale |
70 |
|
71 |
:-) :-) |