mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +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
|
# 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user