mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
new package: add dropbear as an replace for telnet
This commit is contained in:
parent
955b17322e
commit
222049af47
19
packages/network/dropbear/build
Executable file
19
packages/network/dropbear/build
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
$SCRIPTS/build toolchain
|
||||||
|
|
||||||
|
cd $PKG_BUILD
|
||||||
|
|
||||||
|
./configure --host=$TARGET_NAME \
|
||||||
|
--build=$HOST_NAME \
|
||||||
|
--prefix=/usr \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--disable-static \
|
||||||
|
--enable-shared \
|
||||||
|
--disable-shadow \
|
||||||
|
|
||||||
|
make
|
||||||
|
make scp
|
11
packages/network/dropbear/conf.d/sshd
Normal file
11
packages/network/dropbear/conf.d/sshd
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
################################################################################
|
||||||
|
# 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
|
34
packages/network/dropbear/init.d/52_sshd
Executable file
34
packages/network/dropbear/init.d/52_sshd
Executable file
@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# start telnet daemon
|
||||||
|
#
|
||||||
|
# runlevels: openelec, text, debug
|
||||||
|
|
||||||
|
. /etc/sysconfig
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
||||||
|
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"
|
||||||
|
|
||||||
|
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
|
||||||
|
/usr/sbin/dropbear -b /etc/issue -P /var/run/dropbear.pid
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
12
packages/network/dropbear/install
Executable file
12
packages/network/dropbear/install
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/sbin
|
||||||
|
cp -PR $PKG_BUILD/dropbear $INSTALL/usr/sbin
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/bin
|
||||||
|
cp -PR $PKG_BUILD/dbclient $INSTALL/usr/bin/ssh
|
||||||
|
cp -PR $PKG_BUILD/dropbearconvert $INSTALL/usr/bin
|
||||||
|
cp -PR $PKG_BUILD/dropbearkey $INSTALL/usr/bin
|
||||||
|
cp -PR $PKG_BUILD/scp $INSTALL/usr/bin
|
1
packages/network/dropbear/url
Normal file
1
packages/network/dropbear/url
Normal file
@ -0,0 +1 @@
|
|||||||
|
http://matt.ucc.asn.au/dropbear/dropbear-0.52.tar.bz2
|
Loading…
x
Reference in New Issue
Block a user