dropbear:

- use /storage/.cache/dropbear for SSH keys
This commit is contained in:
Stephan Raue 2010-03-25 12:14:31 +01:00
parent 18bd39f310
commit bd12db1058
2 changed files with 8 additions and 8 deletions

View File

@ -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"

View File

@ -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