* [PATCH v2] udev-164: don't hardcode path to pidof
@ 2012-03-08 21:12 Andreas Oberritter
2012-03-08 21:19 ` Andreas Oberritter
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Oberritter @ 2012-03-08 21:12 UTC (permalink / raw)
To: openembedded-core
* 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 <obi@opendreambox.org>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] udev-164: don't hardcode path to pidof
2012-03-08 21:12 [PATCH v2] udev-164: don't hardcode path to pidof Andreas Oberritter
@ 2012-03-08 21:19 ` Andreas Oberritter
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Oberritter @ 2012-03-08 21:19 UTC (permalink / raw)
To: openembedded-core
On 08.03.2012 22:12, Andreas Oberritter wrote:
> * pidof lives in /bin, search it in $PATH.
> * Assume pidof's presence.
> * Remove -e shell option, because pidof may return nonzero.
I just noticed that v1 was already merged, so I'll send an incremental
patch in a minute.
Regards,
Andreas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-08 21:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-08 21:12 [PATCH v2] udev-164: don't hardcode path to pidof Andreas Oberritter
2012-03-08 21:19 ` Andreas Oberritter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox