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 # 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" progress "SSH: generating rsa key"
$IONICE mkdir -p /etc/dropbear $IONICE mkdir -p /storage/.cache/dropbear
dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key > /dev/null 2>&1 dropbearkey -t rsa -f /storage/.cache/dropbear/dropbear_rsa_host_key > /dev/null 2>&1
fi fi
# Check for the Dropbear DSS key # 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" progress "SSH: generating dsa key"
$IONICE mkdir -p /etc/dropbear $IONICE mkdir -p /storage/.cache/dropbear
dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key > /dev/null 2>&1 dropbearkey -t dss -f /storage/.cache/dropbear/dropbear_dss_host_key > /dev/null 2>&1
fi fi
progress "Starting SSH Server" 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/dropbearkey $INSTALL/usr/bin
cp -PR $PKG_BUILD/scp $INSTALL/usr/bin cp -PR $PKG_BUILD/scp $INSTALL/usr/bin
mkdir -p $INSTALL/usr/config/dropbear mkdir -p $INSTALL/etc
ln -s /storage/.config/dropbear $INSTALL/etc/dropbear ln -s /storage/.cache/dropbear $INSTALL/etc/dropbear