mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 14:02:22 +02:00
initscripts: use pidof command in killproc() function
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4643 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -9,9 +9,6 @@ cpuinfo_id() { # return the Hardware module ID
|
||||
}
|
||||
|
||||
killproc() { # kill the named process(es)
|
||||
pid=`/bin/ps -e x |
|
||||
/bin/grep $1 |
|
||||
/bin/grep -v grep |
|
||||
/bin/sed -e 's/^ *//' -e 's/ .*//'`
|
||||
pid=`/bin/pidof $1`
|
||||
[ "$pid" != "" ] && kill $pid
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ PRIORITY = "required"
|
||||
DEPENDS = "makedevs"
|
||||
RDEPENDS = "makedevs"
|
||||
LICENSE = "GPL"
|
||||
PR = "r109"
|
||||
PR = "r110"
|
||||
|
||||
SRC_URI = "file://functions \
|
||||
file://halt \
|
||||
|
||||
Reference in New Issue
Block a user