source: udev/udev_retry@ 124f8507

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 124f8507 was 124f8507, checked in by Jim Gifford <clfs@…>, 19 years ago

r2678@server: jim | 2006-03-22 12:40:49 -0800
Updated for use with Udev 088

  • Property mode set to 100755
File size: 1.0 KB
RevLine 
[7e161ea]1#!/bin/sh
2########################################################################
3# Begin $rc_base/init.d/udev_retry
4#
5# Description : Udev Retry Boot Script
6#
7# Authors : Based on Open Suse Udev Rules
8# kay.sievers@suse.de
9#
10# Adapted to : Jim Gifford
11# LFS
12#
13# Version : 00.00
14#
15# Notes : Retry Udev events that have failed after local file
16# systems are mounted
17#
18########################################################################
19
20. /etc/sysconfig/rc
21. ${rc_functions}
22
23case "$1" in
24 start)
25 if test -d /dev/.udev/failed; then
[128c984]26 boot_mesg "Retry device configuration..."
[7e161ea]27 list=$(echo /dev/.udev/failed/*)
28 for i in $list; do
29 device="$(readlink $i)/uevent"
30 test -e $device && echo "add" > $device
31 done
32 fi
[124f8507]33 loop=300
34 confirm=0
35 while true ; do
36 sleep 0.1
37 test -d /dev/.udev/queue && confirm=0 || confirm=$(( $confirm + 1 ))
38 loop=$(( $loop - 1 ))
39 test $loop -gt 0 || break
40 test $confirm -lt 10 || break
41 done
42 echo_ok
[7e161ea]43 ;;
44 *)
45 echo "Usage: $0 {start}"
46 exit 1
47 ;;
48esac
Note: See TracBrowser for help on using the repository browser.