3 # Make sure the dropbearkey progam exists
4 [ -f /usr
/bin
/dropbearkey
] ||
exit 0
6 # Check for the Dropbear RSA key
7 if [ ! -f /etc
/dropbear
/dropbear_rsa_host_key
] ; then
9 echo Generating RSA Key...
10 mkdir
-p /etc
/dropbear
11 /usr
/bin
/dropbearkey
-t rsa
-f /etc
/dropbear
/dropbear_rsa_host_key
12 [ -f /etc
/dropbear
/dropbear_rsa_host_key
] && exec $0 $
*
13 ) > /dev
/null
2> /dev
/null
&
17 # Check for the Dropbear DSS key
18 if [ ! -f /etc
/dropbear
/dropbear_dss_host_key
] ; then
20 echo Generating DSS Key...
21 mkdir
-p /etc
/dropbear
22 /usr
/bin
/dropbearkey
-t dss
-f /etc
/dropbear
/dropbear_dss_host_key
23 [ -f /etc
/dropbear
/dropbear_dss_host_key
] && exec $0 $
*
24 ) > /dev
/null
2> /dev
/null
&
This page took 0.046359 seconds and 5 git commands to generate.