summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2011-08-15 16:26:55 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-15 15:26:21 +0100
commit356ae2563bfa8d00660eadc19bcfdd6ae354ee8e (patch)
tree6621920f8626b79ae9c508b821098c6486b86944 /meta
parent16bbb3144cede1c4aaf70be1921b4290a45ae5eb (diff)
downloadpoky-356ae2563bfa8d00660eadc19bcfdd6ae354ee8e.tar.gz
The Skeleton initscript doesn't work on minimal image
Fixes bug [YOCTO #1165] The /etc/init.d/skeleton doesn't work on minimal image, this is because of the pidofproc doesn't return "$?" correctly, so store $? in the variable status would fix it. (From OE-Core rev: 4d31193a6969df25bb85a9862b7295e85dcec04b) 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/functions5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/functions b/meta/recipes-core/initscripts/initscripts-1.0/functions
index c1eac3efda..dd7da2b1c3 100644
--- a/meta/recipes-core/initscripts/initscripts-1.0/functions
+++ b/meta/recipes-core/initscripts/initscripts-1.0/functions
@@ -18,7 +18,8 @@ pidofproc () {
18 18
19 # pidof output null when no program is running, so no "2>/dev/null". 19 # pidof output null when no program is running, so no "2>/dev/null".
20 pid=`pidof $1` 20 pid=`pidof $1`
21 case $? in 21 status=$?
22 case $status in
22 0) 23 0)
23 echo $pid 24 echo $pid
24 return 0 25 return 0
@@ -28,7 +29,7 @@ pidofproc () {
28 exit 127 29 exit 127
29 ;; 30 ;;
30 *) 31 *)
31 return $? 32 return $status
32 ;; 33 ;;
33 esac 34 esac
34} 35}