Received: from ffm.saftware.de ([83.141.3.46]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1S5kmD-00085y-7G for openembedded-core@lists.openembedded.org; Thu, 08 Mar 2012 22:21:37 +0100 From: Andreas Oberritter To: openembedded-core@lists.openembedded.org Date: Thu, 8 Mar 2012 22:12:41 +0100 Message-Id: <1331241161-13878-1-git-send-email-obi@opendreambox.org> X-Mailer: git-send-email 1.7.5.4 Subject: [PATCH v2] udev-164: don't hardcode path to pidof X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2012 21:21:37 -0000 * pidof lives in /bin, search it in $PATH. * Assume pidof's presence. * Remove -e shell option, because pidof may return nonzero. Signed-off-by: Andreas Oberritter --- v1->v2: Removed -e. meta/recipes-core/udev/udev/init | 8 +++----- meta/recipes-core/udev/udev_164.bb | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init index 78b5b1c..d521685 100644 --- a/meta/recipes-core/udev/udev/init +++ b/meta/recipes-core/udev/udev/init @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh ### BEGIN INIT INFO # Provides: udev @@ -28,10 +28,8 @@ readfile () { } kill_udevd() { - if [ -x /sbin/pidof ]; then - pid=`/sbin/pidof -x udevd` - [ -n "$pid" ] && kill $pid - fi + pid=`pidof -x udevd` + [ -n "$pid" ] && kill $pid } export ACTION=add diff --git a/meta/recipes-core/udev/udev_164.bb b/meta/recipes-core/udev/udev_164.bb index b993a13..d661044 100644 --- a/meta/recipes-core/udev/udev_164.bb +++ b/meta/recipes-core/udev/udev_164.bb @@ -1,6 +1,6 @@ include udev.inc -PR = "r11" +PR = "r12" SRC_URI += "file://udev-166-v4l1-1.patch" -- 1.7.5.4