Browse Source

if sshd startup fails due to rsa not being there, start up

/usr/local/sbin/sshd instead, if it is there.
OPENBSD_2_6
deraadt 25 years ago
parent
commit
8d1747ba61
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      src/etc/rc

+ 8
- 3
src/etc/rc View File

@ -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 '.'


Loading…
Cancel
Save