linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Make udev re-process the rules database?
@ 2008-07-03 17:29 Matthew Dharm
  2008-07-03 18:13 ` Greg KH
  2008-07-03 18:38 ` Kay Sievers
  0 siblings, 2 replies; 3+ messages in thread
From: Matthew Dharm @ 2008-07-03 17:29 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 866 bytes --]

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

-- 
Matthew Dharm                              Home: mdharm-usb@one-eyed-alien.net 
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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Make udev re-process the rules database?
  2008-07-03 17:29 Make udev re-process the rules database? Matthew Dharm
@ 2008-07-03 18:13 ` Greg KH
  2008-07-03 18:38 ` Kay Sievers
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2008-07-03 18:13 UTC (permalink / raw)
  To: linux-hotplug

On Thu, Jul 03, 2008 at 10:29:41AM -0700, Matthew Dharm wrote:
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Make udev re-process the rules database?
  2008-07-03 17:29 Make udev re-process the rules database? Matthew Dharm
  2008-07-03 18:13 ` Greg KH
@ 2008-07-03 18:38 ` Kay Sievers
  1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2008-07-03 18:38 UTC (permalink / raw)
  To: linux-hotplug

On Thu, Jul 3, 2008 at 19:29, Matthew Dharm
<mdharm-usb@one-eyed-alien.net> wrote:
> 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?

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

Kay

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-03 18:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-03 17:29 Make udev re-process the rules database? Matthew Dharm
2008-07-03 18:13 ` Greg KH
2008-07-03 18:38 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).