mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Guillermo Rodriguez <guille.rodriguez@gmail.com>
To: ptxdist@pengutronix.de
Cc: Guillermo Rodriguez <guille.rodriguez@gmail.com>
Subject: [ptxdist] [PATCH] udev init script should pass --action=add to udevadm trigger
Date: Thu, 25 Aug 2016 15:27:50 +0200	[thread overview]
Message-ID: <1472131670-2542-1-git-send-email-guille.rodriguez@gmail.com> (raw)
In-Reply-To: <20160825114236.e7kbdtwbosyuaosa@pengutronix.de>

'udevadm trigger' was being called without parameters in the
udev init script. This is equivalent to --action=change, which
means that udev rules for the "add" action would not be
triggered. Fix this by explicitly passing --action=add to
udevadm trigger.

Signed-off-by: Guillermo Rodriguez <guille.rodriguez@gmail.com>
---
 projectroot/etc/init.d/udev |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/projectroot/etc/init.d/udev b/projectroot/etc/init.d/udev
index 5c1bf42..a38dc73 100644
--- a/projectroot/etc/init.d/udev
+++ b/projectroot/etc/init.d/udev
@@ -69,7 +69,7 @@ start)
 
 	# Now traverse sys/ in order to "coldplug"
 	# devices that have already been discovered
-	udevadm trigger
+	udevadm trigger --action=add
 	# Now wait for udevd to process
 	# the uevents we triggered
 	echo -n "waiting for devices..."
-- 
1.7.9.5


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2016-08-25 13:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-24 14:52 [ptxdist] Shouldn't /etc/init.d/udev call udevadm trigger with --action=all ? Guillermo Rodriguez Garcia
2016-08-25 11:42 ` Michael Olbrich
2016-08-25 13:27   ` Guillermo Rodriguez [this message]
2016-08-25 13:30   ` Guillermo Rodriguez Garcia

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=1472131670-2542-1-git-send-email-guille.rodriguez@gmail.com \
    --to=guille.rodriguez@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /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