Linux Hotplug development
 help / color / mirror / Atom feed
* proper way to coldplug with current udev
@ 2010-11-18 13:26 Michal Soltys
  0 siblings, 0 replies; only message in thread
From: Michal Soltys @ 2010-11-18 13:26 UTC (permalink / raw)
  To: linux-hotplug

Since v129, there's --type option to use with trigger, and since v152 
the default --action is 'change'.

What is the proper, "reference" way to do coldplug now ? Looking into rc 
scripts of few distros - some of them use both --type (to trigger both 
'subsystems' and 'devices') and --action (to force 'add'), some only 
adjust --type (so: 'devices' + 'new'), some others rely on the defaults 
('devices' + 'change').

The most complete form would be something like:

udevadm trigger --type=subsystems --action­d
udevadm settle (is this one necessary ?)
udevadm trigger --typeÞvices --action­d
udevadm settle

And, possibly later - retry any failures with:

udevadm trigger --typeúiled --action­d
udevadm settle


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-18 13:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-18 13:26 proper way to coldplug with current udev Michal Soltys

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox