summaryrefslogtreecommitdiffhomepage
path: root/debian/dropbear.init
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2005-07-08 13:27:28 +0000
committerMatt Johnston <matt@ucc.asn.au>2005-07-08 13:27:28 +0000
commit03731c723bda295a6f6ee8346d622ea45d796563 (patch)
tree006d63ab3052d25afbf9ba126668ba99a9991e1f /debian/dropbear.init
parente903109d9f91f014ceb5ffa2918440d4d12acd61 (diff)
* patch up to date with debian 0.45-3 diff
--HG-- extra : convert_revision : d0935a5d91dac334274693f8d9cd7ae6fd8c2c31
Diffstat (limited to 'debian/dropbear.init')
-rw-r--r--debian/dropbear.init8
1 files changed, 5 insertions, 3 deletions
diff --git a/debian/dropbear.init b/debian/dropbear.init
index d9578db..d31a231 100644
--- a/debian/dropbear.init
+++ b/debian/dropbear.init
@@ -14,10 +14,12 @@ NO_START=0
set -e
+cancel() { echo "$1" >&2; exit 0; };
test ! -r /etc/default/dropbear || . /etc/default/dropbear
-test "$NO_START" = "0" || exit 0
-test -x "$DAEMON" || exit 0
-test ! -h /var/service/dropbear || exit 0
+test "$NO_START" = "0" || cancel 'NO_START is not set to zero.'
+test -x "$DAEMON" || cancel "$DAEMON does not exist or is not executable."
+test ! -h /var/service/dropbear || \
+ cancel '/var/service/dropbear exists, service is controlled through runit.'
test -z "$DROPBEAR_BANNER" || \
DROPBEAR_EXTRA_ARGS="$DROPBEAR_EXTRA_ARGS -b $DROPBEAR_BANNER"