mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
openssh: start sshd if enabled in os.openelec.settings
This commit is contained in:
parent
50d3738c8a
commit
4a2185ca0b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user