mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 09:32:14 +02:00
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:
committed by
Richard Purdie
parent
d3cb369365
commit
63534ab967
@@ -97,7 +97,7 @@ case "$1" in
|
||||
|
||||
status)
|
||||
status /usr/sbin/sshd
|
||||
return $?
|
||||
exit $?
|
||||
;;
|
||||
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user