summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-03-02 15:56:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-03-02 15:56:29 +0000
commit8fd70f65c238597d6e0e1219c09e901a862e21d0 (patch)
treeffec6b38b254778109716d4adb2860cfad099f25
parentfdce9dac8aeb87605ee94f54a277c181437f2107 (diff)
start sshd earlier, ok from various
-rw-r--r--etc/rc10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/rc b/etc/rc
index b880027fedc..76789e117a5 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.235 2004/02/26 07:33:08 beck Exp $
+# $OpenBSD: rc,v 1.236 2004/03/02 15:56:28 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -430,6 +430,10 @@ fi
echo -n starting network daemons:
+if [ X"${sshd_flags}" != X"NO" ]; then
+ echo -n ' sshd'; /usr/sbin/sshd ${sshd_flags};
+fi
+
# $routed_flags are imported from /etc/rc.conf.
# If $routed_flags == NO, routed isn't run.
if [ "X${routed_flags}" != X"NO" ]; then
@@ -555,10 +559,6 @@ if [ "X${mopd_flags}" != X"NO" -a -d /tftpboot/mop ]; then
echo -n ' mopd'; mopd ${mopd_flags}
fi
-if [ X"${sshd_flags}" != X"NO" ]; then
- echo -n ' sshd'; /usr/sbin/sshd ${sshd_flags};
-fi
-
echo '.'
if [ -x /sbin/wsconsctl -a -f /etc/wsconsctl.conf ]; then