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 rev: e7cf83ec3f39a7c41e38c6030b0d903fa7d37b2a)

Signed-off-by: Qiang Chen <qiang.chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Qiang Chen
2013-10-18 16:50:20 +08:00
committed by Richard Purdie
parent d3cb369365
commit 63534ab967

View File

@@ -97,7 +97,7 @@ case "$1" in
status)
status /usr/sbin/sshd
return $?
exit $?
;;
*)