1 --- dropbear-0.42/S50dropbear
2 +++ dropbear-0.42/S50dropbear
6 +# Starts dropbear sshd.
9 +# Make sure the dropbearkey progam exists
10 +[ -f /usr/bin/dropbearkey ] || exit 0
12 +# Check for the Dropbear RSA key
13 +if [ ! -f /etc/dropbear/dropbear_rsa_host_key ] ; then
14 + echo Generating RSA Key...
15 + mkdir -p /etc/dropbear
16 + /usr/bin/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
19 +# Check for the Dropbear DSS key
20 +if [ ! -f /etc/dropbear/dropbear_dss_host_key ] ; then
21 + echo Generating DSS Key...
22 + mkdir -p /etc/dropbear
23 + /usr/bin/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
29 + echo -n "Starting dropbear sshd: "
30 + start-stop-daemon --start --quiet --pidfile /var/run/dropbear.pid --exec /usr/sbin/dropbear
34 + echo -n "Stopping sshd: "
35 + start-stop-daemon --stop --quiet --pidfile /var/run/dropbear.pid
54 + echo $"Usage: $0 {start|stop|restart}"