Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev 087 to 103 syntax changes, etc...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
onesandzeros
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2002
Posts: 108

PostPosted: Mon Dec 04, 2006 1:09 pm    Post subject: udev 087 to 103 syntax changes, etc... Reply with quote

Hello all,

I was just wondering about changes in udev, particularly stuff in /etc/udev/rules.d/, between 087 and 103. In that directory, I've got the basic udev files, which must be ok (my system's internal components all work fine, thankfully), but I've also got 10-udev.rules. In that, I've got my own 3 rules for my removable storage. This *used* to work. Now, it doesn't. I can manually mount these devices, after figuring out which /dev entry they've been connected to, but I can't make udev observe these rules. What am I missing? I looked around for a while and got the idea that SYSFS changed to ATTRS, which is what you see below.
Code:
#SD card
ATTRS{serial}=="20020111003935640", NAME=="sda1"

#256M usb stick
ATTRS{product}=="USB Flash Disk", NAME=="sdb1"

#ipod
ATTRS{serial}=="000A270010099AF2", NAME=="sdc2"

Any hints? Also, what's the preferred method to make udev re-read rules? Is udevstart ok?

Thanks,
Chris
Back to top
View user's profile Send private message
abager
n00b
n00b


Joined: 08 Sep 2004
Posts: 35
Location: Denmark, Aalborg

PostPosted: Mon Dec 04, 2006 2:26 pm    Post subject: Reply with quote

Try to change NAME=="" to NAME=""
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Mon Dec 04, 2006 2:38 pm    Post subject: Reply with quote

Yes udevstart is sufficient and SYSFS still is what you want.
Back to top
View user's profile Send private message
onesandzeros
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2002
Posts: 108

PostPosted: Mon Dec 04, 2006 3:08 pm    Post subject: Reply with quote

Looking good, thanks guys.
Back to top
View user's profile Send private message
Robert S
Guru
Guru


Joined: 15 Aug 2004
Posts: 460
Location: Canberra Australia

PostPosted: Sat Dec 09, 2006 11:44 pm    Post subject: Reply with quote

I see that 10-udev.rules is no longer owned by a package. Should I remove it?
Back to top
View user's profile Send private message
richfish
Apprentice
Apprentice


Joined: 03 Mar 2006
Posts: 202
Location: Phoenix, AZ

PostPosted: Sat Dec 09, 2006 11:52 pm    Post subject: Reply with quote

Robert S wrote:
I see that 10-udev.rules is no longer owned by a package. Should I remove it?


No, it is still where you want to put your own udev rules. Of course, if you have no rules (empty file), it is safe to delete.
Back to top
View user's profile Send private message
Robert S
Guru
Guru


Joined: 15 Aug 2004
Posts: 460
Location: Canberra Australia

PostPosted: Sun Dec 10, 2006 12:00 am    Post subject: Reply with quote

Aha - I see now. I wrote that file. The syntax has changed. I'll try to work out how to fix it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum