mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
openssh: start sshd if enabled in os.openelec.settings
This commit is contained in:
@@ -22,6 +22,10 @@
|
||||
#
|
||||
# runlevels: openelec, textmode
|
||||
|
||||
if [ -f /var/config/settings.conf ]; then
|
||||
. /var/config/settings.conf
|
||||
fi
|
||||
|
||||
RSA1_KEY="/storage/.cache/ssh/ssh_host_key"
|
||||
RSA2_KEY="/storage/.cache/ssh/ssh_host_rsa_key"
|
||||
DSA2_KEY="/storage/.cache/ssh/ssh_host_dsa_key"
|
||||
@@ -36,7 +40,7 @@
|
||||
. /etc/ssh.conf
|
||||
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
|
||||
if [ ! -s $RSA1_KEY ] ; then
|
||||
|
||||
Reference in New Issue
Block a user