Skip to contentSkip to conversation

Make udev re-process the rules database?

DISCUSSION Matthew Dharm 3 participants 3 messages Jul 3, 2008

lore
Share & tools
lore
#0 lore raw

Is there a way to easily make udev re-process the rules database?

The scenario I found was when I was messing with rules that applied to ttyS[0-3]. I would change a rule, and then I couldn't figure out how to simulate a removal/insertion event to test the new rule.

Yes, I could use some udev tools to get a simulation of what the rules would do, but that's not the same thing. And, depending on what I was changing, the simulation would not give me correct information about what would happen.

I wound up doing a lot of rebooting... but is there an easier way?

Matt

Signature · 7 lines
Matthew Dharm                              Home: [email protected] 
Maintainer, Linux USB Mass Storage Driver

Sir, for the hundreth time, we do NOT carry 600-round boxes of belt-fed 
suction darts!
					-- Salesperson to Greg
User Friendly, 12/30/1997
#1 lore raw
Quoted 1 line · Matthew Dharm

Is there a way to easily make udev re-process the rules database?

	udevadm control --reload_rules

man pages are a wonderful thing :)

thanks,

greg k-h

#2 lore raw
In reply to Matthew Dharm
Quoted 6 lines · Matthew Dharm

Is there a way to easily make udev re-process the rules database?

The scenario I found was when I was messing with rules that applied to ttyS[0-3]. I would change a rule, and then I couldn't figure out how to simulate a removal/insertion event to test the new rule.

Quoted 6 lines

Yes, I could use some udev tools to get a simulation of what the rules would do, but that's not the same thing. And, depending on what I was changing, the simulation would not give me correct information about what would happen.

I wound up doing a lot of rebooting... but is there an easier way?

Echo "remove"/"add" to /dev$DEVPATH/uevent?

Kay