diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2012-03-08 13:08:50 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-08 11:55:33 -0800 |
commit | 62a2a41194dec4d158c65b218fa45761b4fe1dda (patch) | |
tree | 3da5235de5822df046c614f866c9fb29b462e0fb /meta/recipes-core | |
parent | a8dc76ee69cfe1ffe846c07a510e3a562a5b1a7f (diff) | |
download | poky-62a2a41194dec4d158c65b218fa45761b4fe1dda.tar.gz |
udev-164: don't hardcode path to pidof
* pidof lives in /bin, search it in $PATH.
* Assume pidof's presence.
(From OE-Core rev: 2f9ac0a10f7d1e3144622a5dff5aa6787fcee534)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/udev/udev/init | 6 | ||||
-rw-r--r-- | meta/recipes-core/udev/udev_164.bb | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init index 78b5b1c4b6..f9e90146e1 100644 --- a/meta/recipes-core/udev/udev/init +++ b/meta/recipes-core/udev/udev/init | |||
@@ -28,10 +28,8 @@ readfile () { | |||
28 | } | 28 | } |
29 | 29 | ||
30 | kill_udevd() { | 30 | kill_udevd() { |
31 | if [ -x /sbin/pidof ]; then | 31 | pid=`pidof -x udevd` |
32 | pid=`/sbin/pidof -x udevd` | 32 | [ -n "$pid" ] && kill $pid |
33 | [ -n "$pid" ] && kill $pid | ||
34 | fi | ||
35 | } | 33 | } |
36 | 34 | ||
37 | export ACTION=add | 35 | export ACTION=add |
diff --git a/meta/recipes-core/udev/udev_164.bb b/meta/recipes-core/udev/udev_164.bb index b993a13fb5..d66104413b 100644 --- a/meta/recipes-core/udev/udev_164.bb +++ b/meta/recipes-core/udev/udev_164.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | include udev.inc | 1 | include udev.inc |
2 | 2 | ||
3 | PR = "r11" | 3 | PR = "r12" |
4 | 4 | ||
5 | SRC_URI += "file://udev-166-v4l1-1.patch" | 5 | SRC_URI += "file://udev-166-v4l1-1.patch" |
6 | 6 | ||