Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
361:461c4b1fb35f | 511:582cb38e4eb5 |
---|---|
52 # RSA hostkey file (default: /etc/dropbear/dropbear_rsa_host_key) | 52 # RSA hostkey file (default: /etc/dropbear/dropbear_rsa_host_key) |
53 #DROPBEAR_RSAKEY="/etc/dropbear/dropbear_rsa_host_key" | 53 #DROPBEAR_RSAKEY="/etc/dropbear/dropbear_rsa_host_key" |
54 | 54 |
55 # DSS hostkey file (default: /etc/dropbear/dropbear_dss_host_key) | 55 # DSS hostkey file (default: /etc/dropbear/dropbear_dss_host_key) |
56 #DROPBEAR_DSSKEY="/etc/dropbear/dropbear_dss_host_key" | 56 #DROPBEAR_DSSKEY="/etc/dropbear/dropbear_dss_host_key" |
57 | |
58 # Receive window size - this is a tradeoff between memory and | |
59 # network performance | |
60 DROPBEAR_RECEIVE_WINDOW=65536 | |
57 EOT | 61 EOT |
58 fi | 62 fi |
59 | 63 |
60 if test -x /etc/init.d/dropbear; then | 64 if test -x /etc/init.d/dropbear; then |
61 update-rc.d dropbear defaults >/dev/null | 65 update-rc.d dropbear defaults >/dev/null |
63 invoke-rc.d dropbear restart | 67 invoke-rc.d dropbear restart |
64 else | 68 else |
65 /etc/init.d/dropbear restart | 69 /etc/init.d/dropbear restart |
66 fi | 70 fi |
67 fi | 71 fi |
72 | |
73 if test -n "$2" && dpkg --compare-versions "$2" lt '0.50-4' && | |
74 update-service --check dropbear; then | |
75 update-service --remove /etc/dropbear 2>/dev/null || : | |
76 sleep 6 | |
77 rm -rf /var/run/dropbear /var/run/dropbear.log | |
78 update-service --add /etc/dropbear || : | |
79 fi |