mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
openssh: support SSH_ENABLED_DEFAULT option
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
This commit is contained in:
parent
f0a7445fb4
commit
ef377a261e
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user