2 ########################################################################
5 # Description : Udev cold-plugging script (retry)
7 # Authors : Alexander E. Patrakov
8 # Update : Bruce Dubbs - bdubbs@linuxfromscratch.org
12 ########################################################################
15 # Provides: udev_retry
16 # Required-Start: udev
17 # Should-Start: $local_fs
22 # Short-Description: Replays failed uevents and creates additonal devices.
23 # Description: Replays any failed uevents that were skipped due to
24 # slow hardware initialization, and creates those needed
26 # X-LFS-Provided-By: LFS
33 boot_mesg
"Retrying failed uevents, if any..."
35 RUNDIR
=$
(/sbin
/udevadm info
--run)
36 # From Debian: "copy the rules generated before / was mounted
39 for file in ${RUNDIR}/tmp-rules--
*; do
40 dest
=${file##*tmp-rules--}
41 [ "$dest" = '*' ] && break
42 cat $file >> /etc
/udev
/rules.d
/$dest
46 # Re-trigger the failed uevents in hope they will succeed now
47 /sbin
/udevadm trigger
--type=failed
--action=add
49 # Now wait for udevd to process the uevents we triggered
55 echo "Usage ${0} {start}"