3 # Starts dropbear sshd.
6 # Make sure the dropbearkey progam exists
7 [ -f /usr
/bin
/dropbearkey
] ||
exit 0
9 # Check for the Dropbear RSA key
10 if [ ! -f /etc
/dropbear
/dropbear_rsa_host_key
] ; then
12 echo Generating RSA Key...
13 mkdir
-p /etc
/dropbear
14 /usr
/bin
/dropbearkey
-t rsa
-f /etc
/dropbear
/dropbear_rsa_host_key
15 [ -f /etc
/dropbear
/dropbear_rsa_host_key
] && exec $0 $
*
16 ) > /dev
/null
2> /dev
/null
&
20 # Check for the Dropbear DSS key
21 if [ ! -f /etc
/dropbear
/dropbear_dss_host_key
] ; then
23 echo Generating DSS Key...
24 mkdir
-p /etc
/dropbear
25 /usr
/bin
/dropbearkey
-t dss
-f /etc
/dropbear
/dropbear_dss_host_key
26 [ -f /etc
/dropbear
/dropbear_dss_host_key
] && exec $0 $
*
27 ) > /dev
/null
2> /dev
/null
&
34 echo -n "Starting dropbear sshd: "
35 start-stop-daemon
--start --quiet --pidfile /var
/run
/dropbear.pid
--exec /usr
/sbin
/dropbear
39 echo -n "Stopping dropbear sshd: "
40 start-stop-daemon
--stop --quiet --pidfile /var
/run
/dropbear.pid
59 echo $
"Usage: $0 {start|stop|restart}"
This page took 0.059235 seconds and 5 git commands to generate.