summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2011-05-17 09:29:25 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-18 14:32:45 +0100
commit0b175c42d712103e4149d5580c11e1b0d59220ae (patch)
tree2f846f01fbbe8d0cec30c2d8f1dab1dcc9b8b6ea
parent728cec9848956d95e3c87862796d7c38d8f6fb37 (diff)
downloadast2050-yocto-poky-0b175c42d712103e4149d5580c11e1b0d59220ae.zip
ast2050-yocto-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>
-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 689fd32..ac99e11 100644
--- a/meta/recipes-core/initscripts/initscripts-1.0/functions
+++ b/meta/recipes-core/initscripts/initscripts-1.0/functions
@@ -4,11 +4,12 @@
# shell scripts in the /etc/init.d directory.
#
-machine_id() { # return the machine ID
- awk 'BEGIN { FS=": " } /Hardware/ { gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo
+machine_id() { # return the machine ID
+ awk 'BEGIN { FS=": " } /Hardware/ \
+ { gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo
}
-killproc() { # kill the named process(es)
- pid=`/bin/pidof $1`
- [ "$pid" != "" ] && kill $pid
+killproc() { # kill the named process(es)
+ pid=`/bin/pidof $1`
+ [ "$pid" != "" ] && kill $pid
}
OpenPOWER on IntegriCloud