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:
Marcin Juszkiewicz 2008-06-13 14:21:01 +00:00
parent 7f5b6f9339
commit f37e581b87
2 changed files with 2 additions and 5 deletions

View File

@ -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
}

View File

@ -4,7 +4,7 @@ PRIORITY = "required"
DEPENDS = "makedevs"
RDEPENDS = "makedevs"
LICENSE = "GPL"
PR = "r109"
PR = "r110"
SRC_URI = "file://functions \
file://halt \