1 --- dropbear-0.42/S50dropbear
2 +++ dropbear-0.42/S50dropbear
6 +# Starts dropbear sshd.
9 +# Make sure the dropbear config directory exists
10 +[ -d /etc/dropbear ] || mkdir -p /etc/dropbear
12 +# Make sure the dropbearkey progam exists
13 +[ -f /usr/bin/dropbearkey ] || exit 0
15 +# Check for keys and generate if not present
16 +[ -r /etc/dropbear/dropbear_dss_host_key ] || /usr/bin/dropbearkey -t dss -s 768 -f /etc/dropbear/dropbear_dss_host_key
17 +[ -r /etc/dropbear/dropbear_rsa_host_key ] || /usr/bin/dropbearkey -t rsa -s 768 -f /etc/dropbear/dropbear_rsa_host_key
22 + echo -n "Starting dropbear sshd: "
23 + start-stop-daemon --start --quiet --pidfile /var/run/dropbear.pid --exec /usr/sbin/dropbear
27 + echo -n "Stopping sshd: "
28 + start-stop-daemon --stop --quiet --pidfile /var/run/dropbear.pid
47 + echo $"Usage: $0 {start|stop|restart}"