--- elwix/config/etc/default/rc.d/022.sshd.run 2012/02/22 23:31:21 1.2.4.1 +++ elwix/config/etc/default/rc.d/022.sshd.run 2012/02/23 09:39:38 1.2.4.2 @@ -41,6 +41,8 @@ sshd_keygen() ) } +[ ! -x /usr/sbin/sshd ] && exit + if [ ! -f /etc/ssh/ssh_host_key -o \ ! -f /etc/ssh/ssh_host_dsa_key -o \ ! -f /etc/ssh/ssh_host_rsa_key ]; then @@ -48,4 +50,4 @@ if [ ! -f /etc/ssh/ssh_host_key -o \ sshd_keygen fi -[ -x /usr/sbin/sshd ] && /usr/sbin/sshd -f $CONFIG +/usr/sbin/sshd -f $CONFIG