udev: remove explicit path to udevadm

Oe-core has chnaged the udevadm path, current path will causes failure:
udevd[102]: starting version 182
/etc/rcS.d/S04udev: line 106: /usr/bin/udevadm: No such file or directory

Fix as oe-core commit: cc0f22cd1e93cc25647add1a3339e150572e4fce

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Xin Ouyang <xin.ouyang@windriver.com>
This commit is contained in:
Jackie Huang 2014-01-22 14:17:52 +08:00 committed by Xin Ouyang
parent de0afbc8f4
commit 5a36af9f91

View File

@ -103,13 +103,13 @@ case "$1" in
echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
@UDEVD@ -d
/usr/bin/udevadm control --env=STARTUP=1
udevadm control --env=STARTUP=1
if [ "$not_first_boot" != "" ];then
/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=10; /usr/bin/udevadm control --env=STARTUP=)&
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
(udevadm settle --timeout=10; udevadm control --env=STARTUP=)&
else
/usr/bin/udevadm trigger --action=add
/usr/bin/udevadm settle
udevadm trigger --action=add
udevadm settle
fi
test ! -x /sbin/restorecon || /sbin/restorecon -F /dev