mirror of
https://git.yoctoproject.org/poky
synced 2026-10-17 17:47:02 +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:
1 parent
7f5b6f9339
commit
f37e581b87
2 files changed
+2
-5
No files matched your search
+1
-4
@@ -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