From c34300c72ee541b868802cd7d4b75705e66c3838 Mon Sep 17 00:00:00 2001 From: Qiang Chen Date: Fri, 18 Oct 2013 16:50:20 +0800 Subject: [PATCH] openssh: fix sshd status command error prompt sshd status command results in error prompt: root@qemu0:~# /etc/init.d/sshd status /usr/sbin/sshd (pid 1199) is running... /etc/init.d/sshd: line 100: return: can only `return' from a function or sourced script "service --status-all" command also display wrong status for sshd. This commit fix this error prompt and make service command display right status for sshd. (From OE-Core master rev: e7cf83ec3f39a7c41e38c6030b0d903fa7d37b2a) (From OE-Core rev: 1b5409b5b060459f15c32c89b1983122b2126f84) Signed-off-by: Qiang Chen Signed-off-by: Richard Purdie Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- meta/recipes-connectivity/openssh/openssh-6.2p2/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-connectivity/openssh/openssh-6.2p2/init b/meta/recipes-connectivity/openssh/openssh-6.2p2/init index 266689c2cf..e7f3971324 100644 --- a/meta/recipes-connectivity/openssh/openssh-6.2p2/init +++ b/meta/recipes-connectivity/openssh/openssh-6.2p2/init @@ -97,7 +97,7 @@ case "$1" in status) status /usr/sbin/sshd - return $? + exit $? ;; *)