summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-10-07 04:41:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-10-07 04:41:08 +0000
commitca148e0cada9860296dece8d6f1b6791cf62a6ef (patch)
tree71213c23c0686af323a0f902b9a4317aa21351da /etc/rc
parent7dc53b5df09d520d9c33c7c8d3751cb025536b0c (diff)
if sshd startup fails due to rsa not being there, start up
/usr/local/sbin/sshd instead, if it is there.
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc11
1 files changed, 8 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index 158652ce153..8ae6e975416 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.118 1999/10/06 04:41:46 millert Exp $
+# $OpenBSD: rc,v 1.119 1999/10/07 04:41:07 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -490,8 +490,13 @@ if [ "X${mopd_flags}" != X"NO" -a -d /tftpboot/mop ]; then
fi
if [ X"${sshd}" == X"YES" -a -x /usr/sbin/sshd ]; then
- echo -n ' sshd'; /usr/sbin/sshd
- #echo -n ' sshd(2022)'; /usr/sbin/sshd -p 2022
+ if /usr/sbin/sshd -Q ; then
+ echo -n ' sshd';
+ #echo -n ' sshd(2022)'; /usr/sbin/sshd -p 2022
+ elif [ -f /usr/local/sbin/sshd ]; then
+ /usr/local/sbin/sshd
+ echo -n ' sshd';
+ fi
fi
echo '.'