openssh: start sshd if enabled in os.openelec.settings

This commit is contained in:
Stefan Saraev 2012-07-30 21:53:29 +03:00
parent 50d3738c8a
commit 4a2185ca0b

View File

@ -22,6 +22,10 @@
# #
# runlevels: openelec, textmode # runlevels: openelec, textmode
if [ -f /var/config/settings.conf ]; then
. /var/config/settings.conf
fi
RSA1_KEY="/storage/.cache/ssh/ssh_host_key" RSA1_KEY="/storage/.cache/ssh/ssh_host_key"
RSA2_KEY="/storage/.cache/ssh/ssh_host_rsa_key" RSA2_KEY="/storage/.cache/ssh/ssh_host_rsa_key"
DSA2_KEY="/storage/.cache/ssh/ssh_host_dsa_key" DSA2_KEY="/storage/.cache/ssh/ssh_host_dsa_key"
@ -36,7 +40,7 @@
. /etc/ssh.conf . /etc/ssh.conf
fi fi
if [ "$SSH" = yes -o -f /storage/.config/ssh_enable ]; then if [ "$SSH" = yes -o -f /storage/.config/ssh_enable -o "$SSHD_START" == "true" ]; then
# Check for the SSH1 RSA key # Check for the SSH1 RSA key
if [ ! -s $RSA1_KEY ] ; then if [ ! -s $RSA1_KEY ] ; then