Skip to contentSkip to conversation

udev-173: don't hardcode path to pidof

PATCH Superseded Andreas Oberritter 1 participant 1 message Mar 8, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udev-173: don't hardcode path to pidof

* pidof lives in /bin, search it in $PATH.
* Assume pidof's presence.

---
 meta-oe/recipes-core/udev/udev/init   |    6 ++----
 meta-oe/recipes-core/udev/udev_173.bb |    2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)
meta-oe/recipes-core/udev/udev/init +2 -4
index ecc357d..559ea44 100644
@@ -18,10 +18,8 @@ export TZ=/etc/localtime
 [ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf
 
 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
meta-oe/recipes-core/udev/udev_173.bb +1 -1
index 5c5ce26..b7d7ed3 100644
@@ -16,7 +16,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
 # Needed for udev-extras
 DEPENDS = "gperf-native usbutils acl glib-2.0"
 
-PR = "r3"
+PR = "r4"
 
 # version specific SRC_URI
 SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
Signature · 1 line
1.7.5.4