summaryrefslogtreecommitdiffhomepage
path: root/debian/dropbear.prerm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/dropbear.prerm')
-rw-r--r--debian/dropbear.prerm11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/dropbear.prerm b/debian/dropbear.prerm
new file mode 100644
index 0000000..e63cdb8
--- /dev/null
+++ b/debian/dropbear.prerm
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -e
+
+test "$1" = 'remove' || test "$1" = 'deconfigure' || exit 0
+if test -x /etc/init.d/dropbear; then
+ if test -x /usr/sbin/invoke-rc.d; then
+ invoke-rc.d dropbear stop
+ else
+ /etc/init.d/dropbear stop
+ fi
+fi