summaryrefslogtreecommitdiff
path: root/debian/dropbear.prerm
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-08-12 16:41:58 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-08-12 16:41:58 +0000
commite3e03ba5123d76b27b28db134603dbd6a1111f06 (patch)
tree0b54a905a49358adc37ce32e3e80239dd6ebd736 /debian/dropbear.prerm
parenta82d614485700729f2b650d45a73dbf55094707f (diff)
downloaddropbear-e3e03ba5123d76b27b28db134603dbd6a1111f06.tar.gz
Merging in the changes from 0.41-0.43 main Dropbear tree
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..89bb5b6
--- /dev/null
+++ b/debian/dropbear.prerm
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -u
+
+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