Patchwork udev: Set the default action to "add" in the startup script

login
register
mail settings
Submitter Paul Cercueil
Date Dec. 17, 2013, 1:14 a.m.
Message ID <1387242855-4882-1-git-send-email-paul@crapouillou.net>
Download mbox | patch
Permalink /patch/301972/
State New
Delegated to: Thomas De Schampheleire
Headers show

Comments

Paul Cercueil - Dec. 17, 2013, 1:14 a.m.
Otherwise, when udev starts a lot of hardware will not be configured.

Signed-Off-By: Paul Cercueil <paul@crapouillou.net>
---
 package/udev/S10udev | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Thomas De Schampheleire - May 1, 2014, 7:08 p.m.
Eric, all,

On Tue, Dec 17, 2013 at 2:14 AM, Paul Cercueil <paul@crapouillou.net> wrote:
> Otherwise, when udev starts a lot of hardware will not be configured.
>
> Signed-Off-By: Paul Cercueil <paul@crapouillou.net>
> ---
>  package/udev/S10udev | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/udev/S10udev b/package/udev/S10udev
> index 2c7b7e9..fa669ea 100755
> --- a/package/udev/S10udev
> +++ b/package/udev/S10udev
> @@ -30,7 +30,7 @@ case "$1" in
>          echo -n "Populating ${udev_root:-/dev} using udev: "
>          echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
>          $UDEV_BIN -d || (echo "FAIL" && exit 1)
> -        udevadm trigger
> +        udevadm trigger --action=add
>          echo "done"
>          ;;
>      stop)

Could you shine your light on this patch? Is this a correct change?

Thanks,
Thomas

Patch

diff --git a/package/udev/S10udev b/package/udev/S10udev
index 2c7b7e9..fa669ea 100755
--- a/package/udev/S10udev
+++ b/package/udev/S10udev
@@ -30,7 +30,7 @@  case "$1" in
         echo -n "Populating ${udev_root:-/dev} using udev: "
         echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
         $UDEV_BIN -d || (echo "FAIL" && exit 1)
-        udevadm trigger
+        udevadm trigger --action=add
         echo "done"
         ;;
     stop)