dropbear: create /etc/dropbear folder before creating keys.

This commit is contained in:
Ricardo Martins 2013-07-31 02:37:46 +01:00
parent 024635e10c
commit a64b86d125

View File

@ -3,12 +3,14 @@ start()
if [ -x /usr/bin/dropbearmulti ]; then
if ! [ -f /etc/dropbear/dropbear_rsa_host_key ]; then
mount -o remount,rw /
mkdir -p /etc/dropbear &&
dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
mount -o remount,ro /
fi
if ! [ -f /etc/dropbear/dropbear_dss_host_key ]; then
mount -o remount,rw /
mkdir -p /etc/dropbear &&
dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
mount -o remount,ro /
fi