mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
openssh: support SSH_ENABLED_DEFAULT option
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
This commit is contained in:
@@ -94,6 +94,9 @@
|
||||
# local console login prompt (yes / no)
|
||||
LOCAL_LOGIN="yes"
|
||||
|
||||
# Enable SSH on boot (yes / no)
|
||||
SSH_ENABLED_DEFAULT="yes"
|
||||
|
||||
### KODI SETTINGS ###
|
||||
# Mediacenter to use (kodi / no)
|
||||
MEDIACENTER="no"
|
||||
|
||||
@@ -94,6 +94,9 @@
|
||||
# local console login prompt (yes / no)
|
||||
LOCAL_LOGIN="no"
|
||||
|
||||
# Enable SSH on boot (yes / no)
|
||||
SSH_ENABLED_DEFAULT="no"
|
||||
|
||||
### KODI SETTINGS ###
|
||||
# Mediacenter to use (kodi / no)
|
||||
MEDIACENTER="kodi"
|
||||
|
||||
@@ -55,5 +55,8 @@ post_makeinstall_target() {
|
||||
}
|
||||
|
||||
post_install() {
|
||||
if [ "${SSH_ENABLED_DEFAULT}" = "yes" ]; then
|
||||
sed -e "\|^Condition.*|d" -i ${INSTALL}/usr/lib/systemd/system/sshd.service
|
||||
fi
|
||||
enable_service sshd.service
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user