diff options
author | markm <markm@FreeBSD.org> | 2000-02-24 23:12:04 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2000-02-24 23:12:04 +0000 |
commit | 1b942b3840d42ed0285df9ce5acecc085d72a377 (patch) | |
tree | 8e202046e77fdb80578498386e580e48894261e3 /etc/rc.d | |
parent | 27fe751781019519d2a2b6a7584e6ebb62683272 (diff) | |
download | FreeBSD-src-1b942b3840d42ed0285df9ce5acecc085d72a377.zip FreeBSD-src-1b942b3840d42ed0285df9ce5acecc085d72a377.tar.gz |
Run sshd at boot time if the sysadmin wants it. Also install
ssh[d] config files in the right place.
Diffstat (limited to 'etc/rc.d')
-rw-r--r-- | etc/rc.d/netoptions | 7 | ||||
-rw-r--r-- | etc/rc.d/network1 | 7 | ||||
-rw-r--r-- | etc/rc.d/network2 | 7 | ||||
-rw-r--r-- | etc/rc.d/network3 | 7 | ||||
-rw-r--r-- | etc/rc.d/routing | 7 |
5 files changed, 35 insertions, 0 deletions
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions index b42bd65..3b0771c 100644 --- a/etc/rc.d/netoptions +++ b/etc/rc.d/netoptions @@ -603,6 +603,13 @@ network_pass3() { ;; esac + case ${sshd_enable} in + [Yy][Ee][Ss]) + echo -n ' sshd'; + ${sshd_program:-/usr/sbin/sshd} ${sshd_flags} + ;; + esac + echo '.' network_pass3_done=YES } diff --git a/etc/rc.d/network1 b/etc/rc.d/network1 index b42bd65..3b0771c 100644 --- a/etc/rc.d/network1 +++ b/etc/rc.d/network1 @@ -603,6 +603,13 @@ network_pass3() { ;; esac + case ${sshd_enable} in + [Yy][Ee][Ss]) + echo -n ' sshd'; + ${sshd_program:-/usr/sbin/sshd} ${sshd_flags} + ;; + esac + echo '.' network_pass3_done=YES } diff --git a/etc/rc.d/network2 b/etc/rc.d/network2 index b42bd65..3b0771c 100644 --- a/etc/rc.d/network2 +++ b/etc/rc.d/network2 @@ -603,6 +603,13 @@ network_pass3() { ;; esac + case ${sshd_enable} in + [Yy][Ee][Ss]) + echo -n ' sshd'; + ${sshd_program:-/usr/sbin/sshd} ${sshd_flags} + ;; + esac + echo '.' network_pass3_done=YES } diff --git a/etc/rc.d/network3 b/etc/rc.d/network3 index b42bd65..3b0771c 100644 --- a/etc/rc.d/network3 +++ b/etc/rc.d/network3 @@ -603,6 +603,13 @@ network_pass3() { ;; esac + case ${sshd_enable} in + [Yy][Ee][Ss]) + echo -n ' sshd'; + ${sshd_program:-/usr/sbin/sshd} ${sshd_flags} + ;; + esac + echo '.' network_pass3_done=YES } diff --git a/etc/rc.d/routing b/etc/rc.d/routing index b42bd65..3b0771c 100644 --- a/etc/rc.d/routing +++ b/etc/rc.d/routing @@ -603,6 +603,13 @@ network_pass3() { ;; esac + case ${sshd_enable} in + [Yy][Ee][Ss]) + echo -n ' sshd'; + ${sshd_program:-/usr/sbin/sshd} ${sshd_flags} + ;; + esac + echo '.' network_pass3_done=YES } |