Mercurial > vanilla
diff network/openssh/sshd @ 533:9f90de3d806f
network: use new FHS
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 10 Apr 2019 20:16:00 +0200 |
parents | f2c94d482098 |
children | 657ee4987f4d |
line wrap: on
line diff
--- a/network/openssh/sshd Wed Apr 10 20:14:00 2019 +0200 +++ b/network/openssh/sshd Wed Apr 10 20:16:00 2019 +0200 @@ -3,26 +3,26 @@ # /etc/rc.d/sshd: run control script for sshd if [ -f /etc/rc.conf ]; then - source /etc/rc.conf + . /etc/rc.conf fi -: ${SSHD_CMD:=/usr/sbin/sshd} +: ${SSHD_CMD:=/bin/sshd} : ${SSHD_ARGS:=} : ${SSHD_PID:=/var/run/sshd.pid} sshd_start() { if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then - /usr/bin/ssh-keygen -q -t rsa -b 2048 -N "" -f /etc/ssh/ssh_host_rsa_key + /bin/ssh-keygen -q -t rsa -b 2048 -N "" -f /etc/ssh/ssh_host_rsa_key fi if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then - /usr/bin/ssh-keygen -q -t dsa -N "" -f /etc/ssh/ssh_host_dsa_key + /bin/ssh-keygen -q -t dsa -N "" -f /etc/ssh/ssh_host_dsa_key fi if [ ! -f /etc/ssh/ssh_host_ecdsa_key ]; then - /usr/bin/ssh-keygen -q -t ecdsa -b 521 -N "" -f /etc/ssh/ssh_host_ecdsa_key + /bin/ssh-keygen -q -t ecdsa -b 521 -N "" -f /etc/ssh/ssh_host_ecdsa_key fi if [ ! -f /etc/ssh/ssh_host_ed25519_key ]; then - /usr/bin/ssh-keygen -q -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key + /bin/ssh-keygen -q -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key fi echo "Starting sshd: $SSHD_CMD $SSHD_ARGS" @@ -41,7 +41,7 @@ sshd_stop() { if [ -s $SSHD_PID ]; then - echo "Stopping sshd..." + echo "Stopping sshd." kill -QUIT $SSHD_PID fi }