#!/bin/sh [ -e /etc/rc.defaults ] && . /etc/rc.defaults [ -e /etc/rc.conf ] && . /etc/rc.conf case "$1" in start) echo "Starting $DAEMON" if [ ! -f /etc/dropbear_rsa_host_key ] then dropbearkey -t rsa -f /etc/dropbear_rsa_host_key fi dropbear -F& ;; stop) echo "Stopping sshd" kill -9 `pidof dropbear` ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 " exit 1 ;; esac