From 322d2501b21fdcde7e44592e70ddcfa3b1a8f8b6 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Mon, 18 Oct 1999 01:46:24 +0000 Subject: [PATCH] ssh startup fix; millert --- src/etc/rc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/etc/rc b/src/etc/rc index 30edfe79..efaef82a 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.122 1999/10/15 19:51:29 deraadt Exp $ +# $OpenBSD: rc,v 1.123 1999/10/18 01:46:24 deraadt Exp $ # System startup script run by init on autoboot # or after single-user. @@ -451,11 +451,9 @@ if [ "X${mopd_flags}" != X"NO" -a -d /tftpboot/mop ]; then fi if [ X"${sshd}" == X"YES" ]; then - if [ -x /usr/sbin/sshd ]; then - if /usr/sbin/sshd -Q ; then - echo -n ' sshd'; - #echo -n ' sshd(2022)'; /usr/sbin/sshd -p 2022 - fi + if test -x /usr/sbin/sshd && /usr/sbin/sshd -Q ; then + echo -n ' sshd'; + #echo -n ' sshd(2022)'; /usr/sbin/sshd -p 2022 elif [ -x /usr/local/sbin/sshd ]; then /usr/local/sbin/sshd echo -n ' sshd';