summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/initscripts/initscripts-1.0/functions11
1 files changed, 6 insertions, 5 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/functions b/meta/recipes-core/initscripts/initscripts-1.0/functions
index 689fd32b39..ac99e112c7 100644
--- a/meta/recipes-core/initscripts/initscripts-1.0/functions
+++ b/meta/recipes-core/initscripts/initscripts-1.0/functions
@@ -4,11 +4,12 @@
4# shell scripts in the /etc/init.d directory. 4# shell scripts in the /etc/init.d directory.
5# 5#
6 6
7machine_id() { # return the machine ID 7machine_id() { # return the machine ID
8 awk 'BEGIN { FS=": " } /Hardware/ { gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo 8 awk 'BEGIN { FS=": " } /Hardware/ \
9 { gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo
9} 10}
10 11
11killproc() { # kill the named process(es) 12killproc() { # kill the named process(es)
12 pid=`/bin/pidof $1` 13 pid=`/bin/pidof $1`
13 [ "$pid" != "" ] && kill $pid 14 [ "$pid" != "" ] && kill $pid
14} 15}