Skip to contentSkip to conversation

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

PATCH Applied Kumar Gala 2 participants 2 messages Nov 2, 2011 – Nov 7, 2011

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 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'.

---
 meta/recipes-core/udev/udev-164/init |    4 ++--
 meta/recipes-core/udev/udev_164.bb   |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
meta/recipes-core/udev/udev-164/init +2 -2
index 9ce95ee..073942f 100644
@@ -48,10 +48,10 @@ kill_udevd > "/dev/null" 2>&1
 
         /sbin/udevadm control --env=STARTUP=1
 		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=)&
 		else
-			/sbin/udevadm trigger
+			/sbin/udevadm trigger --action=add
 			/sbin/udevadm settle
 		fi
 
meta/recipes-core/udev/udev_164.bb +1 -1
index 7cbe4d8..d487add 100644
@@ -1,6 +1,6 @@
 include udev-new.inc
 
-PR = "r6"
+PR = "r7"
 
 SRC_URI += "file://udev-166-v4l1-1.patch"
 
Signature · 1 line
1.7.3.4
Applied
#1 lore raw
Quoted 35 lines · Kumar Gala

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'.

---
  meta/recipes-core/udev/udev-164/init |    4 ++--
  meta/recipes-core/udev/udev_164.bb   |    2 +-
  2 files changed, 3 insertions(+), 3 deletions(-)
meta/recipes-core/udev/udev-164/init +2 -2
index 9ce95ee..073942f 100644
@@ -48,10 +48,10 @@ kill_udevd>  "/dev/null" 2>&1
 
          /sbin/udevadm control --env=STARTUP=1
  		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=)&
  		else
-			/sbin/udevadm trigger
+			/sbin/udevadm trigger --action=add
  			/sbin/udevadm settle
  		fi
 
meta/recipes-core/udev/udev_164.bb +0 -0
index 7cbe4d8..d487add 100644

meta/recipes-core/udev/udev_164.bb line 6

Quoted 7 lines
meta/recipes-core/udev/udev_164.bb +1 -1
@@ -1,6 +1,6 @@
  include udev-new.inc
 
-PR = "r6"
+PR = "r7"
 
  SRC_URI += "file://udev-166-v4l1-1.patch"
 

Merged into OE-Core

Thanks
Sau!