wok-stable diff openssh-pam/receipt @ rev 7303
openssh: convert dropbear host keys
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 17 17:10:28 2010 +0100 (2010-11-17) |
parents | eb7d8ec19f8a |
children | 0938c8dab9a2 |
line diff
1.1 --- a/openssh-pam/receipt Fri Sep 10 21:00:06 2010 +0000 1.2 +++ b/openssh-pam/receipt Wed Nov 17 17:10:28 2010 +0100 1.3 @@ -36,3 +36,16 @@ 1.4 sed -i 's/.*UsePAM.*/UsePAM yes/' $fs/etc/sshd/sshd_config 1.5 } 1.6 1.7 +# Pre and post install commands for Tazpkg. 1.8 +post_install() 1.9 +{ 1.10 + while read dropbear openssh ; do 1.11 + [ -s $dropbear ] || continue 1.12 + dropbearconvert dropbear openssh $1$dropbear $1$openssh 1.13 + dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub 1.14 + dropbearkey -y -f $1$dropbear | grep Fingerprint 1.15 + done <<EOT 1.16 +/etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key 1.17 +/etc/dropbear/dropbear_dsa_host_key /etc/ssh/ssh_host_dss_key 1.18 +EOT 1.19 +}