Patchwork [1/3] udev: Modify init script to use the correct path of udevadm

login
register
mail settings
Submitter Andrei Gherzan
Date Feb. 9, 2013, 10:09 p.m.
Message ID <1360447797-10187-1-git-send-email-andrei@gherzan.ro>
Download mbox | patch
Permalink /patch/44411/
State Accepted
Commit bee0b38726645bca65161680a99203f9c8525944
Headers show

Comments

Andrei Gherzan - Feb. 9, 2013, 10:09 p.m.
udevadm is installed in /usr/bin not in /usr/sbin. Init script modified
accordingly.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
---
 meta/recipes-core/udev/udev/init |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Patch

diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index 8ac1ff7..95d2672 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -73,13 +73,13 @@  case "$1" in
     echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
     /lib/udev/udevd -d
 
-    /usr/sbin/udevadm control --env=STARTUP=1
+    /usr/bin/udevadm control --env=STARTUP=1
     if [ "$not_first_boot" != "" ];then
-            /usr/sbin/udevadm trigger --action=add --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus  --subsystem-nomatch=graphics	 --subsystem-nomatch=backlight --subsystem-nomatch=video4linux	--subsystem-nomatch=platform
-            (/usr/sbin/udevadm settle --timeout=3; /sbin/udevadm control --env=STARTUP=)&
+            /usr/bin/udevadm trigger --action=add --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus  --subsystem-nomatch=graphics	 --subsystem-nomatch=backlight --subsystem-nomatch=video4linux	--subsystem-nomatch=platform
+            (/usr/bin/udevadm settle --timeout=3; /usr/bin/udevadm control --env=STARTUP=)&
     else
-            /usr/sbin/udevadm trigger --action=add
-            /usr/sbin/udevadm settle
+            /usr/bin/udevadm trigger --action=add
+            /usr/bin/udevadm settle
     fi
     ;;
   stop)