udev 141/151/154: Move rm'ing /tmp/uname, etc, to udev-cache
authorTom Rini <tom_rini@mentor.com>
Fri, 20 Aug 2010 22:59:09 +0000 (15:59 -0700)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 23 Mar 2013 17:08:36 +0000 (19:08 +0200)
Otherwise we'll remove these files before udev-cache is run.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
Conflicts:

recipes/udev/udev-151/init
recipes/udev/udev-154/cache
recipes/udev/udev-154/init
recipes/udev/udev_141.bb
recipes/udev/udev_151.bb
recipes/udev/udev_154.bb

recipes/udev/udev-141/cache
recipes/udev/udev-141/init
recipes/udev/udev-151/cache
recipes/udev/udev-151/init
recipes/udev/udev_151.bb

index 4db1466..c0d400b 100644 (file)
@@ -6,13 +6,17 @@ export TZ=/etc/localtime
 
 echo "Caching udev devnodes"
 
-                       if [ "$DEVCACHE" != "" ]; then
-                               echo -n "Populating dev cache"
-                               (cd /; tar cf $DEVCACHE dev)
-                               mv /tmp/uname /etc/udev/saved.uname
-                               mv /tmp/cmdline /etc/udev/saved.cmdline
-                               mv /tmp/atags /etc/udev/saved.atags
-                               echo
-                       fi
+if [ "$DEVCACHE" != "" ]; then
+       echo -n "Populating dev cache"
+       (cd /; tar cf $DEVCACHE dev)
+       mv /tmp/uname /etc/udev/saved.uname
+       mv /tmp/cmdline /etc/udev/saved.cmdline
+       mv /tmp/atags /etc/udev/saved.atags
+       echo
+else
+       rm -f /tmp/uname
+       rm -f /tmp/cmdline
+       rm -f /tmp/atags
+fi
 
 exit 0
index 66705e6..f3a3493 100644 (file)
@@ -60,11 +60,6 @@ kill_udevd > "/dev/null" 2>&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 settle --timeout=3; /sbin/udevadm control --env STARTUP=)&
-                       if [ "$DEVCACHE" != "" ]; then
-                               rm -f /tmp/uname
-                               rm -f /tmp/cmdline
-                               rm -f /tmp/atags
-                       fi
                else
                        /sbin/udevadm trigger
                        /sbin/udevadm settle
index 4db1466..c0d400b 100644 (file)
@@ -6,13 +6,17 @@ export TZ=/etc/localtime
 
 echo "Caching udev devnodes"
 
-                       if [ "$DEVCACHE" != "" ]; then
-                               echo -n "Populating dev cache"
-                               (cd /; tar cf $DEVCACHE dev)
-                               mv /tmp/uname /etc/udev/saved.uname
-                               mv /tmp/cmdline /etc/udev/saved.cmdline
-                               mv /tmp/atags /etc/udev/saved.atags
-                               echo
-                       fi
+if [ "$DEVCACHE" != "" ]; then
+       echo -n "Populating dev cache"
+       (cd /; tar cf $DEVCACHE dev)
+       mv /tmp/uname /etc/udev/saved.uname
+       mv /tmp/cmdline /etc/udev/saved.cmdline
+       mv /tmp/atags /etc/udev/saved.atags
+       echo
+else
+       rm -f /tmp/uname
+       rm -f /tmp/cmdline
+       rm -f /tmp/atags
+fi
 
 exit 0
index f4dc5de..b8ace53 100644 (file)
@@ -64,12 +64,7 @@ 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 settle --timeout=3; /sbin/udevadm control --env STARTUP=)&
-                       if [ "$DEVCACHE" != "" ]; then
-                               rm -f /tmp/uname
-                               rm -f /tmp/cmdline
-                               rm -f /tmp/atags
-                       fi
+                       (/sbin/udevadm settle --timeout=8; /sbin/udevadm control --env STARTUP=)&
                else
                        /sbin/udevadm trigger
                        /sbin/udevadm settle
index 10eafda..5f44d23 100644 (file)
@@ -3,7 +3,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod
 the hotplug package and requires a kernel not older than 2.6.12."
 LICENSE = "GPLv2+"
 
-PR = "r20"
+PR = "r21"
 
 # Untested
 DEFAULT_PREFERENCE = "-1"