mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +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 console login prompt (yes / no)
|
||||||
LOCAL_LOGIN="yes"
|
LOCAL_LOGIN="yes"
|
||||||
|
|
||||||
|
# Enable SSH on boot (yes / no)
|
||||||
|
SSH_ENABLED_DEFAULT="yes"
|
||||||
|
|
||||||
### KODI SETTINGS ###
|
### KODI SETTINGS ###
|
||||||
# Mediacenter to use (kodi / no)
|
# Mediacenter to use (kodi / no)
|
||||||
MEDIACENTER="no"
|
MEDIACENTER="no"
|
||||||
|
@ -94,6 +94,9 @@
|
|||||||
# local console login prompt (yes / no)
|
# local console login prompt (yes / no)
|
||||||
LOCAL_LOGIN="no"
|
LOCAL_LOGIN="no"
|
||||||
|
|
||||||
|
# Enable SSH on boot (yes / no)
|
||||||
|
SSH_ENABLED_DEFAULT="no"
|
||||||
|
|
||||||
### KODI SETTINGS ###
|
### KODI SETTINGS ###
|
||||||
# Mediacenter to use (kodi / no)
|
# Mediacenter to use (kodi / no)
|
||||||
MEDIACENTER="kodi"
|
MEDIACENTER="kodi"
|
||||||
|
@ -55,5 +55,8 @@ post_makeinstall_target() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
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
|
enable_service sshd.service
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user