Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] udex rules not working right

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Pieter Lenaerts <e-type AT sourcemage.org>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] udex rules not working right
  • Date: Tue, 10 Jan 2006 12:31:31 +0100

Op di, 10-01-2006 te 11:27 +0100, schreef Ladislav Hagara:
> I had the same problem several days (weeks?) before and all I did was
> (without meditation about udev) dispel udev; rm -rf /etc/udev; cast -r
> -c udev; and all is OK. There were some old udev rules before.

sorry if there's a bit too much info in this mail, but at least it's
clear what my symptoms are here :)

so I did a 'dispel udev', 'rm -rf /etc/udev', 'cast -r -c udev'

most ownerships, groups and modes seem okay for the devices, but then:

1. first and strangest thing:

root@agoraeus:/etc/udev# ls -l *
-r--r--r-- 1 pieter 100 1011 2005-12-13 09:01 udev.conf
-r--r--r-- 1 pieter 100 1175 2005-12-13 09:01 udev.missing

rules.d:
totaal 20
-r--r--r-- 1 pieter 100 4237 2006-01-08 09:24 50-default.rules
-r--r--r-- 1 pieter 100 429 2005-10-19 20:35 README
-r--r--r-- 1 pieter 100 1594 2005-10-19 20:35 rules.examples
-rw-rw-rw- 1 root root 3380 2005-12-23 00:51 udev.rules.devfs
root@agoraeus:/etc/udev#

wtf am I doing there as owner of these files ???
apart from that everything works fine

2. I need a rule for my palm:
(I cut out a lot of unnecessary stuff from udevinfo output)
pieter@agoraeus:/dev$ udevinfo -a -p /sys/bus/usb/devices/2-1

KERNEL=="2-1"
SUBSYSTEM=="unknown"
SYSFS{product}=="Palm Handheld "
SYSFS{serial}=="303055565039353344313959"

so I make this line in /etc/udev/rules.d/10-local.rules (without the
newlines):
SYSFS{product}=="Palm Handheld ",
SYSFS{serial}=="303055565039353344313959", MODE="0666",
SYMLINK="pilot%n"

I made this file as root (rules.d is owned by root), run 'udevstart'

no /dev/pilot%n

3. I change the ownership of /etc/udev/rules.d/10-local.rules to
pieter, run 'udevstart' as root, and:

pieter@agoraeus:/etc/udev/rules.d$ ls /dev/pilot* /dev/ttyUSB* -l
lrwxrwxrwx 1 root root 7 2006-01-10 12:13 /dev/pilot0 -> ttyUSB0
lrwxrwxrwx 1 root root 7 2006-01-10 12:13 /dev/pilot1 -> ttyUSB1
lrwxrwxrwx 1 root root 10 2006-01-10 12:13 /dev/pilot31 ->
usbdev2.31
crw------- 1 root root 188, 0 2006-01-10 12:13 /dev/ttyUSB0
crw------- 1 root root 188, 1 2006-01-10 12:13 /dev/ttyUSB1
pieter@agoraeus:/etc/udev/rules.d$

note that now, udev has created the symlink as requested, but ignored
the modeline...

4. I do a 'chown root:root /etc/udev -Rvf' and 'udevstart'
same thing, mode is ignored

5. I tried different combinations of putting my local file at the back,
using group, name, mode and their order...

I failed miserably :-)

any thoughts on my info here?
things anyone wants me to do or not to?

--
Pieter Lenaerts
Source Mage GNU/Linux

http://www.sourcemage.org
"Linux so advanced it may well be magic"

Attachment: signature.asc
Description: Dit berichtdeel is digitaal ondertekend




Archive powered by MHonArc 2.6.24.

Top of Page