public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/udev-gentoo-scripts:master commit in: init.d/, conf.d/
Date: Tue, 31 Jul 2012 17:35:57 +0000 (UTC)	[thread overview]
Message-ID: <1343756124.408660f945441f0978e6415de131530c7d384070.WilliamH@gentoo> (raw)

commit:     408660f945441f0978e6415de131530c7d384070
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 31 16:52:11 2012 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Jul 31 17:35:24 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/udev-gentoo-scripts.git;a=commit;h=408660f9

Allow an optional wait for uevent processing

Systemd allows the wait for uevents during boot to be optional, so we
should do the same.

---
 conf.d/udev |    8 ++++++++
 init.d/udev |    7 ++++++-
 2 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/conf.d/udev b/conf.d/udev
index 1dfdc79..921d86b 100644
--- a/conf.d/udev
+++ b/conf.d/udev
@@ -13,6 +13,14 @@
 
 # Expert options:
 
+# Should we wait for all uevents to be processed at boot?
+# Most of the time, this should not need to be changed.
+#udev_settle_wait="NO"
+
+# Timeout in seconds to wait for processing of uevents at boot.
+# There should be no need to change this.
+#udev_settle_timeout="60"
+
 # Add extra command line options to udevd, use with care
 # udevd --help for possible values
 #udev_opts=""

diff --git a/init.d/udev b/init.d/udev
index 20b52d9..4985d5d 100644
--- a/init.d/udev
+++ b/init.d/udev
@@ -10,6 +10,7 @@ rc_coldplug=${rc_coldplug:-${RC_COLDPLUG:-YES}}
 udev_debug="${udev_debug:-no}"
 udev_monitor="${udev_monitor:-no}"
 udev_monitor_keep_running="${udev_monitor_keep_running:-no}"
+udev_settle_wait="${udev_settle_wait:-NO}"
 udev_settle_timeout="${udev_settle_timeout:-60}"
 kv_min="${kv_min:-2.6.34}"
 
@@ -137,7 +138,11 @@ populate_dev()
 	udevadm trigger --type=subsystems --action=add
 	udevadm trigger --type=devices --action=add
 	eend $?
-
+	if yesno "${udev_settle_wait}"; then
+		ebegin "Waiting for uevents to be processed"
+		udevadm settle --timeout=${udev_settle_timeout}
+		eend $?
+	fi
 	udevadm control --property=do_not_run_plug_service=
 	return 0
 }


             reply	other threads:[~2012-07-31 17:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-31 17:35 William Hubbs [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-11-25 20:58 [gentoo-commits] proj/udev-gentoo-scripts:master commit in: init.d/, conf.d/ William Hubbs
2012-07-31 22:54 William Hubbs
2012-07-16 15:30 William Hubbs
2012-06-30 23:47 William Hubbs
2011-08-03 20:18 William Hubbs
2011-08-03 18:59 William Hubbs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1343756124.408660f945441f0978e6415de131530c7d384070.WilliamH@gentoo \
    --to=williamh@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox