udev-164: Update init script to do an explicit add action

With udev 152 or greater the default action for 'udevadm trigger' was
modified to be 'change' instead of 'add.

To ensure initial coldplug events at boot are seen be scripts the are
expecting them as 'add' events we invoke udevadm with an explicit
'--action=add'.

(From OE-Core rev: eacafd21999ab37b60af29dc3e626c441716ef66)

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Kumar Gala
2011-11-02 02:23:14 -05:00
committed by Richard Purdie
parent 8f78cf2030
commit 49f9ca5d4c
2 changed files with 3 additions and 3 deletions

View File

@@ -48,10 +48,10 @@ kill_udevd > "/dev/null" 2>&1
/sbin/udevadm control --env=STARTUP=1 /sbin/udevadm control --env=STARTUP=1
if [ "$not_first_boot" != "" ];then if [ "$not_first_boot" != "" ];then
/sbin/udevadm trigger --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 /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
(/sbin/udevadm settle --timeout=3; /sbin/udevadm control --env=STARTUP=)& (/sbin/udevadm settle --timeout=3; /sbin/udevadm control --env=STARTUP=)&
else else
/sbin/udevadm trigger /sbin/udevadm trigger --action=add
/sbin/udevadm settle /sbin/udevadm settle
fi fi

View File

@@ -1,6 +1,6 @@
include udev-new.inc include udev-new.inc
PR = "r6" PR = "r7"
SRC_URI += "file://udev-166-v4l1-1.patch" SRC_URI += "file://udev-166-v4l1-1.patch"