]> code.ossystems Code Review - openembedded-core.git/commitdiff
Cleanup the whitespace in functions
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 17 May 2011 01:29:25 +0000 (09:29 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 18 May 2011 13:22:53 +0000 (14:22 +0100)
Cleanup the whitespace in functions, replace the 4 whitespaces
indent with tab.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/recipes-core/initscripts/initscripts-1.0/functions

index 689fd32b3947d6f8b10a49cd605e6a7c6f9746aa..ac99e112c73b889c0f5f651da8d83a6d275bdd1d 100644 (file)
@@ -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
 }