Mercurial > dropbear
diff debian/dropbear.postinst @ 511:582cb38e4eb5 insecure-nocrypto
propagate from branch 'au.asn.ucc.matt.dropbear' (head cdcc3c729e29544e8b98a408e2dc60e4483dfd2a)
to branch 'au.asn.ucc.matt.dropbear.insecure-nocrypto' (head 0ca38a1cf349f7426ac9de34ebe4c3e3735effab)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 06 Nov 2008 13:16:55 +0000 |
parents | 8c2d2edadf2a |
children | 7fc4ba3c1cbb |
line wrap: on
line diff
--- a/debian/dropbear.postinst Mon Oct 02 06:40:51 2006 +0000 +++ b/debian/dropbear.postinst Thu Nov 06 13:16:55 2008 +0000 @@ -54,6 +54,10 @@ # DSS hostkey file (default: /etc/dropbear/dropbear_dss_host_key) #DROPBEAR_DSSKEY="/etc/dropbear/dropbear_dss_host_key" + +# Receive window size - this is a tradeoff between memory and +# network performance +DROPBEAR_RECEIVE_WINDOW=65536 EOT fi @@ -65,3 +69,11 @@ /etc/init.d/dropbear restart fi fi + +if test -n "$2" && dpkg --compare-versions "$2" lt '0.50-4' && +update-service --check dropbear; then + update-service --remove /etc/dropbear 2>/dev/null || : + sleep 6 + rm -rf /var/run/dropbear /var/run/dropbear.log + update-service --add /etc/dropbear || : +fi