mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
dropbear:
- use /storage/.cache/dropbear for SSH keys
This commit is contained in:
parent
18bd39f310
commit
bd12db1058
@ -4,19 +4,19 @@
|
||||
|
||||
(
|
||||
# Check for the Dropbear RSA key
|
||||
if [ ! -f /etc/dropbear/dropbear_rsa_host_key ] ; then
|
||||
if [ ! -f /storage/.cache/dropbear/dropbear_rsa_host_key ] ; then
|
||||
progress "SSH: generating rsa key"
|
||||
|
||||
$IONICE mkdir -p /etc/dropbear
|
||||
dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key > /dev/null 2>&1
|
||||
$IONICE mkdir -p /storage/.cache/dropbear
|
||||
dropbearkey -t rsa -f /storage/.cache/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
|
||||
if [ ! -f /storage/.cache/dropbear/dropbear_dss_host_key ] ; then
|
||||
progress "SSH: generating dsa key"
|
||||
|
||||
$IONICE mkdir -p /etc/dropbear
|
||||
dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key > /dev/null 2>&1
|
||||
$IONICE mkdir -p /storage/.cache/dropbear
|
||||
dropbearkey -t dss -f /storage/.cache/dropbear/dropbear_dss_host_key > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
progress "Starting SSH Server"
|
||||
|
@ -13,5 +13,5 @@ mkdir -p $INSTALL/usr/bin
|
||||
cp -PR $PKG_BUILD/dropbearkey $INSTALL/usr/bin
|
||||
cp -PR $PKG_BUILD/scp $INSTALL/usr/bin
|
||||
|
||||
mkdir -p $INSTALL/usr/config/dropbear
|
||||
ln -s /storage/.config/dropbear $INSTALL/etc/dropbear
|
||||
mkdir -p $INSTALL/etc
|
||||
ln -s /storage/.cache/dropbear $INSTALL/etc/dropbear
|
Loading…
x
Reference in New Issue
Block a user