]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/udev_retry
Add latest changes to core40.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / udev_retry
1 #!/bin/sh
2 ########################################################################
3 # Begin $rc_base/init.d/udev_retry
4 #
5 # Description : Udev cold-plugging script (retry)
6 #
7 # Authors : Alexander E. Patrakov
8 #
9 # Version : 00.02
10 #
11 # Notes :
12 #
13 ########################################################################
14
15 . /etc/sysconfig/rc
16 . ${rc_functions}
17
18 case "${1}" in
19 start)
20 boot_mesg "Retrying failed uevents, if any..."
21 # Re-trigger the failed uevents in hope they will succeed now
22 # If there are none, the "No such file or directory" error
23 # goes to /dev/null
24 for file in /dev/.udev/failed/*/uevent ; do
25 echo "add" >"${file}"
26 done 2>/dev/null
27
28 # Now wait for udevd to process the uevents we triggered
29 /sbin/udevsettle
30 evaluate_retval
31 ;;
32
33 *)
34 echo "Usage ${0} {start}"
35 exit 1
36 ;;
37 esac
38
39 # End $rc_base/init.d/udev_retry