X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=opensshd.init;h=fe09962804e874f80f8c4aa76b3eb5772e065cf2;hb=4dc2df040110e568be70e5a7bfd28b3f8ebf5218;hp=9e76029f7a1991928e53fe30d4233f912e4791a7;hpb=56ee2986a2dd1ef2b508ddd11be89abc5a7f26d5;p=packages%2Fopenssh.git diff --git a/opensshd.init b/opensshd.init index 9e76029..fe09962 100755 --- a/opensshd.init +++ b/opensshd.init @@ -56,7 +56,7 @@ start() { checkconfig - if [ ! -s /etc/ssh/ssh_host_key ]; then + if [ "$(echo /etc/ssh/ssh_host*key)" = "/etc/ssh/ssh_host*key" ]; then msg_not_running "OpenSSH" nls "No SSH host key found! You must run \"%s init\" first." "$0" exit 1