mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
udev-173: don't hardcode path to pidof
* 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> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
committed by
Koen Kooi
parent
47ba455a11
commit
8b5006510a
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: udev
|
# Provides: udev
|
||||||
@@ -18,10 +18,8 @@ export TZ=/etc/localtime
|
|||||||
[ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf
|
[ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf
|
||||||
|
|
||||||
kill_udevd() {
|
kill_udevd() {
|
||||||
if [ -x /sbin/pidof ]; then
|
pid=`pidof -x udevd`
|
||||||
pid=`/sbin/pidof -x udevd`
|
[ -n "$pid" ] && kill $pid
|
||||||
[ -n "$pid" ] && kill $pid
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export ACTION=add
|
export ACTION=add
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
|
|||||||
# Needed for udev-extras
|
# Needed for udev-extras
|
||||||
DEPENDS = "gperf-native usbutils acl glib-2.0"
|
DEPENDS = "gperf-native usbutils acl glib-2.0"
|
||||||
|
|
||||||
PR = "r3"
|
PR = "r4"
|
||||||
|
|
||||||
# version specific SRC_URI
|
# version specific SRC_URI
|
||||||
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
|
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
|
||||||
|
|||||||
Reference in New Issue
Block a user