wok diff dropbear/receipt @ rev 7304
dropbear: convert openssh host keys
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 17 17:23:08 2010 +0100 (2010-11-17) |
parents | 74a6a43bf614 |
children | 0938c8dab9a2 |
line diff
1.1 --- a/dropbear/receipt Tue Feb 16 13:17:20 2010 +0000 1.2 +++ b/dropbear/receipt Wed Nov 17 17:23:08 2010 +0100 1.3 @@ -59,6 +59,14 @@ 1.4 # Post message when installing. 1.5 post_install() 1.6 { 1.7 + while read dropbear openssh ; do 1.8 + [ -s $openssh ] || continue 1.9 + dropbearconvert openssh dropbear $1$openssh $1$dropbear 1.10 + dropbearkey -y -f $1$dropbear | grep Fingerprint 1.11 + done <<EOT 1.12 +/etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key 1.13 +/etc/dropbear/dropbear_dsa_host_key /etc/ssh/ssh_host_dss_key 1.14 +EOT 1.15 echo -e "\nTo starts $PACKAGE server you can run :\n" 1.16 echo "/etc/init.d/$PACKAGE start" 1.17 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"