openssh: Move key generation to the start function of init script.
authorIgnacy Gawędzki <ignacy.gawedzki@green-communications.fr>
Fri, 24 Feb 2017 14:26:24 +0000 (15:26 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 Feb 2017 13:37:54 +0000 (14:37 +0100)
commit92b770cd825915d56ea8d92d063aebdf7ef270a1
treeafea87df3fcf8362c85b99d32aa79a970921de71
parentbe4d3ff6fcfcb1f2800df2ab25d2061ff05a3cb3
openssh: Move key generation to the start function of init script.

Since there's not much point in generating missing host keys when the
init script is called with "stop", the call to ssh-keygen should not
be done inconditionally, but in the start function instead.

Signed-off-by: Ignacy Gawędzki <ignacy.gawedzki@green-communications.fr>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/openssh/S50sshd