summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-10-07 05:11:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-10-07 05:11:20 +0000
commita8305fcbaca50433b6e16e95d6c57fa3e3941692 (patch)
treee297acab0d2feec55986d0957d2c1c8f20ba9619 /etc/rc
parent72390cfafd2aa6d3841d19c548591f2f3902cf64 (diff)
check for executability of ssh-keygen
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 8ae6e975416..9a463d5b0f5 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.119 1999/10/07 04:41:07 deraadt Exp $
+# $OpenBSD: rc,v 1.120 1999/10/07 05:11:19 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -386,7 +386,7 @@ if [ -f /sbin/ldconfig ]; then
ldconfig $shlib_dirs
fi
-if [ ! -f /etc/ssh_host_key ]; then
+if [ ! -f /etc/ssh_host_key -a -x /usr/bin/ssh-keygen ]; then
umask 022
echo -n "ssh-keygen: generating new host key... "
if /usr/bin/ssh-keygen -q -b 1024 -f /etc/ssh_host_key -N ''; then