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:
parent
7f5b6f9339
commit
f37e581b87
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue