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:22:53 +0100 |
commit | 60df57a54ebfe8fa1c1574bcd7900c58810aa2d2 (patch) | |
tree | c51c4e1a14b32e9981c45635508243f961bdb360 /meta/recipes-core/initscripts | |
parent | 3ccbfdecd0cd6c6d1476600b868647a9af46742e (diff) | |
download | openembedded-core-60df57a54ebfe8fa1c1574bcd7900c58810aa2d2.tar.gz openembedded-core-60df57a54ebfe8fa1c1574bcd7900c58810aa2d2.tar.bz2 openembedded-core-60df57a54ebfe8fa1c1574bcd7900c58810aa2d2.zip |
Cleanup the whitespace in functions
Cleanup the whitespace in functions, replace the 4 whitespaces
indent with tab.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Diffstat (limited to 'meta/recipes-core/initscripts')
-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 @@ # 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 } |