]> code.ossystems Code Review - openembedded-core.git/commitdiff
udev: Fix udevd launch issue after system second boot
authorDongxiao Xu <dongxiao.xu@intel.com>
Thu, 9 Jun 2011 00:55:14 +0000 (08:55 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Jun 2011 14:40:35 +0000 (15:40 +0100)
"grep" command will return 1 if nothing is grepped, which will cause
the udevd daemon not working correctly.

This fixes [YOCTO #1146]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
meta/recipes-core/udev/udev-164/init

index 1a8fca5747013bb69df571c290bbd1c4f5e08949..9ce95ee4c2b6a20354d5f8ea84b93a0d8678bb52 100644 (file)
@@ -35,7 +35,7 @@ LANG=C awk "\$2 == \"/dev\" && \$4 == \"tmpfs\" { exit 1 }" /proc/mounts && {
 }
 
 if [ -e /etc/dev.tar ]; then
-       (cd /; tar xf /etc/dev.tar 2>&1 | grep -v 'time stamp')
+       (cd /; tar xf /etc/dev.tar 2>&1 | grep -v 'time stamp' || true)
        not_first_boot=1
 fi