dropbear.run (353B)
1 #!/bin/sh 2 3 . /etc/runit/common 4 5 if test ! -f ${DROPBEAR_KEY:="./dropbear_rsa_host_key"} 6 then 7 test -e ${DROPBEAR_KEY} && die "$DROPBEAR_KEY exists but is not a file" 8 mkdir -p $(dirname $DROPBEAR_KEY) 9 dropbearkey -t rsa -f $DROPBEAR_KEY 10 fi 11 12 printf "Preparation done, starting %s.\n" $SVNAME 13 exec chpst -b sshd /usr/sbin/dropbear -F -E -r $DROPBEAR_KEY