summaryrefslogtreecommitdiffhomepage
path: root/debian/dropbear.postrm
blob: d09dab0712cc99e4d372c3908f3cdde4df7107bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh
set -e

test "$1" = 'purge' || exit 0
if test -e /etc/dropbear; then
  rm -f /etc/dropbear/dropbear_rsa_host_key
  rm -f /etc/dropbear/dropbear_dss_host_key
  rmdir --ignore-fail-on-non-empty /etc/dropbear
fi
update-rc.d dropbear remove >/dev/null
rm -f /etc/default/dropbear
rm -rf /etc/dropbear/supervise /etc/dropbear/log/supervise