diff options
-rw-r--r-- | dropbear.pkg/postinst | 1 | ||||
-rw-r--r-- | dropbear.pkg/prerm | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/dropbear.pkg/postinst b/dropbear.pkg/postinst index e1645cb..d6dd971 100644 --- a/dropbear.pkg/postinst +++ b/dropbear.pkg/postinst @@ -1,6 +1,7 @@ #!/bin/sh if [ "x${1}" = 'xconfigure' ]; then + update-alternatives --install /usr/bin/ssh ssh /usr/bin/dropbearmulti 10 mkdir -p /etc/dropbear for keytype in rsa dsa; do if ! [ -f "/etc/dropbear/dropbear_${keytype}_host_key" ]; then diff --git a/dropbear.pkg/prerm b/dropbear.pkg/prerm index 05fca4c..d5c483a 100644 --- a/dropbear.pkg/prerm +++ b/dropbear.pkg/prerm @@ -3,4 +3,5 @@ if [ "x${1}" = 'xremove' ]; then /etc/init.d/dropbear stop /etc/init.d/dropbear disable + update-alternatives --remove ssh /usr/bin/dropbearmulti fi |