summaryrefslogtreecommitdiff
path: root/opensshd.init.in
diff options
context:
space:
mode:
Diffstat (limited to 'opensshd.init.in')
-rwxr-xr-xopensshd.init.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/opensshd.init.in b/opensshd.init.in
index d0aff7794..0db60caa7 100755
--- a/opensshd.init.in
+++ b/opensshd.init.in
@@ -20,6 +20,7 @@ SSH_KEYGEN=$prefix/bin/ssh-keygen
20HOST_KEY_RSA1=$sysconfdir/ssh_host_key 20HOST_KEY_RSA1=$sysconfdir/ssh_host_key
21HOST_KEY_DSA=$sysconfdir/ssh_host_dsa_key 21HOST_KEY_DSA=$sysconfdir/ssh_host_dsa_key
22HOST_KEY_RSA=$sysconfdir/ssh_host_rsa_key 22HOST_KEY_RSA=$sysconfdir/ssh_host_rsa_key
23@COMMENT_OUT_ECC@HOST_KEY_ECDSA=$sysconfdir/ssh_host_ecdsa_key
23 24
24 25
25checkkeys() { 26checkkeys() {
@@ -32,6 +33,9 @@ checkkeys() {
32 if [ ! -f $HOST_KEY_RSA ]; then 33 if [ ! -f $HOST_KEY_RSA ]; then
33 ${SSH_KEYGEN} -t rsa -f ${HOST_KEY_RSA} -N "" 34 ${SSH_KEYGEN} -t rsa -f ${HOST_KEY_RSA} -N ""
34 fi 35 fi
36@COMMENT_OUT_ECC@ if [ ! -f $HOST_KEY_ECDSA ]; then
37@COMMENT_OUT_ECC@ ${SSH_KEYGEN} -t ecdsa -f ${HOST_KEY_ECDSA} -N ""
38@COMMENT_OUT_ECC@ fi
35} 39}
36 40
37stop_service() { 41stop_service() {