wok-next 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 | d2fa95a8cd5d |
children | 0938c8dab9a2 |
files | dropbear-pam/receipt dropbear/receipt |
line diff
1.1 --- a/dropbear-pam/receipt Wed Nov 17 17:10:28 2010 +0100 1.2 +++ b/dropbear-pam/receipt Wed Nov 17 17:23:08 2010 +0100 1.3 @@ -62,6 +62,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 $SOURCE server you can run :\n" 1.16 echo "/etc/init.d/$SOURCE start" 1.17 echo -e "Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf\n"
2.1 --- a/dropbear/receipt Wed Nov 17 17:10:28 2010 +0100 2.2 +++ b/dropbear/receipt Wed Nov 17 17:23:08 2010 +0100 2.3 @@ -59,6 +59,14 @@ 2.4 # Post message when installing. 2.5 post_install() 2.6 { 2.7 + while read dropbear openssh ; do 2.8 + [ -s $openssh ] || continue 2.9 + dropbearconvert openssh dropbear $1$openssh $1$dropbear 2.10 + dropbearkey -y -f $1$dropbear | grep Fingerprint 2.11 + done <<EOT 2.12 +/etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key 2.13 +/etc/dropbear/dropbear_dsa_host_key /etc/ssh/ssh_host_dss_key 2.14 +EOT 2.15 echo -e "\nTo starts $PACKAGE server you can run :\n" 2.16 echo "/etc/init.d/$PACKAGE start" 2.17 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"