r7433 - in branches/udev_update/bootscripts: . lfs/init.d

Alexander E. Patrakov patrakov at ums.usu.ru
Wed Mar 15 19:00:44 PST 2006


matthew at linuxfromscratch.org wrote:
> +wait_for_uevents() {
> +	# until we know how to do better, just wait for _all_ events to finish
> +	loop=300
> +	confirm=0
> +	while true ; do
> +		sleep 0.1
> +		test -d /dev/.udev/queue && confirm=0 || \
> +		confirm=$(( $confirm + 1 ))
> +		loop=$(( $loop - 1 ))
> +		test $loop -gt 0 || break
> +		test $confirm -lt 60 || break
> +	done
Please add here:
         >/dev/bug

Without this, bugreporting won't work. Reason: the "bug" program 
collects uevents only if /dev/bug exists.

> +	test "$loop" -gt 0
> +	evaluate_retval



-- 
Alexander E. Patrakov



More information about the lfs-book mailing list