mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
dropbear:
- faster starting
This commit is contained in:
parent
c77a746f31
commit
1bcc5afa50
@ -4,33 +4,35 @@
|
||||
#
|
||||
# runlevels: openelec, text, debug
|
||||
|
||||
. /etc/sysconfig
|
||||
(
|
||||
. /etc/sysconfig
|
||||
|
||||
if test "$OE_START_SSHSERVER" = "yes" \
|
||||
-a -f /usr/bin/dropbearkey \
|
||||
-a -f /etc/issue ; then
|
||||
progress "Starting SSH Server"
|
||||
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"
|
||||
# Check for the Dropbear RSA key
|
||||
if [ ! -f /etc/dropbear/dropbear_rsa_host_key ] ; then
|
||||
progress "SSH: generating rsa key"
|
||||
|
||||
mkdir -p /etc/dropbear
|
||||
/usr/bin/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key > /dev/null 2>&1
|
||||
fi
|
||||
mkdir -p /etc/dropbear
|
||||
/usr/bin/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
# Check for the Dropbear DSS key
|
||||
if [ ! -f /etc/dropbear/dropbear_dss_host_key ] ; then
|
||||
progress "SSH: generating dsa key"
|
||||
# Check for the Dropbear DSS key
|
||||
if [ ! -f /etc/dropbear/dropbear_dss_host_key ] ; then
|
||||
progress "SSH: generating dsa key"
|
||||
|
||||
mkdir -p /etc/dropbear
|
||||
/usr/bin/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key > /dev/null 2>&1
|
||||
fi
|
||||
mkdir -p /etc/dropbear
|
||||
/usr/bin/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
mkdir -p /var/log
|
||||
touch /var/log/lastlog
|
||||
touch /var/log/wtmp
|
||||
/usr/sbin/dropbear -b /etc/issue -P /var/run/dropbear.pid &
|
||||
fi
|
||||
mkdir -p /var/log
|
||||
touch /var/log/lastlog
|
||||
touch /var/log/wtmp
|
||||
/usr/sbin/dropbear -b /etc/issue -P /var/run/dropbear.pid
|
||||
fi
|
||||
)&
|
||||
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user