summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-10-19 09:19:55 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-10-19 09:19:55 (EDT)
commit19f183b5c9649924615d55bfdadc3656eeaab367 (patch)
tree1c5071ff9454abad622c101129010fe04f06fc54
parentb1a1877d834675f798141363ae72b67f81fe1105 (diff)
dropbear: Add a /usr/bin/ssh link with u-a
-rw-r--r--dropbear.pkg/postinst1
-rw-r--r--dropbear.pkg/prerm1
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