Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d check existence of /etc/ssh_host_rsa_key too



details:   https://anonhg.NetBSD.org/src/rev/3524e7636dd7
branches:  trunk
changeset: 507612:3524e7636dd7
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Mar 26 22:32:39 2001 +0000

description:
check existence of /etc/ssh_host_rsa_key too

diffstat:

 etc/rc.d/sshd |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 4fa91d7be543 -r 3524e7636dd7 etc/rc.d/sshd
--- a/etc/rc.d/sshd     Mon Mar 26 22:21:26 2001 +0000
+++ b/etc/rc.d/sshd     Mon Mar 26 22:32:39 2001 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: sshd,v 1.9 2001/03/26 22:21:26 itojun Exp $
+# $NetBSD: sshd,v 1.10 2001/03/26 22:32:39 itojun Exp $
 #
 
 # PROVIDE: sshd
@@ -44,7 +44,8 @@
 
 sshd_precmd()
 {
-       if [ ! -f /etc/ssh_host_key -o ! -f /etc/ssh_host_dsa_key ]; then
+       if [ ! -f /etc/ssh_host_key -o ! -f /etc/ssh_host_dsa_key -o \
+            ! -f /etc/ssh_host_rsa_key ]; then
                /etc/rc.d/sshd keygen
        fi
 }



Home | Main Index | Thread Index | Old Index