5 |
{ |
{ |
6 |
if [ ! -e /etc/dropbear/dropbear_dss_host_key ] |
if [ ! -e /etc/dropbear/dropbear_dss_host_key ] |
7 |
then |
then |
8 |
echo -e ${COLOREDSTAR}"Generating DSS-Hostkey ..." |
rc_print "Generating DSS-Hostkey ..." |
9 |
dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key |
dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key |
10 |
fi |
fi |
11 |
|
|
12 |
if [ ! -e /etc/dropbear/dropbear_rsa_host_key ] |
if [ ! -e /etc/dropbear/dropbear_rsa_host_key ] |
13 |
then |
then |
14 |
echo -e ${COLREDSTAR}"Generating RSA-Hostkey ..." |
rc_print "Generating RSA-Hostkey ..." |
15 |
dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key |
dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key |
16 |
fi |
fi |
17 |
} |
} |