mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 06:36:41 +00:00
dropbear:
- various cleanups - remove config dir
This commit is contained in:
parent
e6261479e8
commit
7107de3684
@ -1,11 +0,0 @@
|
||||
################################################################################
|
||||
# SSH Server environment variables.
|
||||
#
|
||||
# This file contains non-OpenELEC evironment variables as well as OpenELEC
|
||||
# evironment variables that are not user defined.
|
||||
################################################################################
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Start SSH Server on boot.
|
||||
#-------------------------------------------------------------------------------
|
||||
OE_START_SSHSERVER=yes
|
@ -3,11 +3,6 @@
|
||||
# runlevels: openelec, text, debug
|
||||
|
||||
(
|
||||
if test "$OE_START_SSHSERVER" = "yes" \
|
||||
-a -f /usr/bin/dropbearkey \
|
||||
-a -f /etc/issue ; then
|
||||
progress "Starting SSH Server"
|
||||
|
||||
# Check for the Dropbear RSA key
|
||||
if [ ! -f /etc/dropbear/dropbear_rsa_host_key ] ; then
|
||||
progress "SSH: generating rsa key"
|
||||
@ -24,9 +19,12 @@
|
||||
/usr/bin/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
progress "Starting SSH Server"
|
||||
|
||||
mkdir -p /var/log
|
||||
touch /var/log/lastlog
|
||||
touch /var/log/wtmp
|
||||
/usr/sbin/dropbear -b /etc/issue -P /var/run/dropbear.pid
|
||||
fi
|
||||
|
||||
dropbear -b /etc/issue -P /var/run/dropbear.pid
|
||||
|
||||
)&
|
||||
|
Loading…
x
Reference in New Issue
Block a user