diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2011-05-17 09:29:25 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-18 14:32:45 +0100 |
commit | 0b175c42d712103e4149d5580c11e1b0d59220ae (patch) | |
tree | 2f846f01fbbe8d0cec30c2d8f1dab1dcc9b8b6ea /meta | |
parent | 728cec9848956d95e3c87862796d7c38d8f6fb37 (diff) | |
download | poky-0b175c42d712103e4149d5580c11e1b0d59220ae.tar.gz |
Cleanup the whitespace in functions
Cleanup the whitespace in functions, replace the 4 whitespaces
indent with tab.
(From OE-Core rev: 60df57a54ebfe8fa1c1574bcd7900c58810aa2d2)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/initscripts/initscripts-1.0/functions | 11 |
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 | ||
7 | machine_id() { # return the machine ID | 7 | machine_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 | ||
11 | killproc() { # kill the named process(es) | 12 | killproc() { # 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 | } |