diff options
author | Qiang Chen <qiang.chen@windriver.com> | 2013-10-18 16:50:20 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-12 17:00:13 +0000 |
commit | c34300c72ee541b868802cd7d4b75705e66c3838 (patch) | |
tree | 3ae687406fac9dcb461d15ed02476350ff21fd5f /meta/recipes-connectivity | |
parent | 3e8bacfcb3b4766bcc0a0e899c01eb89192aecce (diff) | |
download | poky-c34300c72ee541b868802cd7d4b75705e66c3838.tar.gz |
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 <qiang.chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r-- | meta/recipes-connectivity/openssh/openssh-6.2p2/init | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
97 | 97 | ||
98 | status) | 98 | status) |
99 | status /usr/sbin/sshd | 99 | status /usr/sbin/sshd |
100 | return $? | 100 | exit $? |
101 | ;; | 101 | ;; |
102 | 102 | ||
103 | *) | 103 | *) |