#!/bin/sh if [ "x${1}" = 'xconfigure' ]; then update-alternatives --install /usr/bin/ssh ssh /usr/bin/dropbearmulti 10 mkdir -p /etc/dropbear for keytype in rsa dsa; do if ! [ -f "/etc/dropbear/dropbear_${keytype}_host_key" ]; then /usr/bin/dropbearkey -t "${keytype}" \ -f "/etc/dropbear/dropbear_${keytype}_host_key" fi done /etc/init.d/dropbear enable /etc/init.d/dropbear start fi