1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00: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:
Marcin Juszkiewicz
2008-06-13 14:21:01 +00:00
parent 7f5b6f9339
commit f37e581b87
2 changed files with 2 additions and 5 deletions
+1 -4
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
}
+1 -1
View File
@@ -4,7 +4,7 @@ PRIORITY = "required"
DEPENDS = "makedevs"
RDEPENDS = "makedevs"
LICENSE = "GPL"
PR = "r109"
PR = "r110"
SRC_URI = "file://functions \
file://halt \