diff debian/dropbear.init @ 218:3ee0c2f85e1e

* patch up to date with debian 0.45-3 diff
author Matt Johnston <matt@ucc.asn.au>
date Fri, 08 Jul 2005 13:27:28 +0000
parents b0316ce64e4b
children c66797d973ff
line wrap: on
line diff
--- a/debian/dropbear.init	Mon Mar 07 04:25:43 2005 +0000
+++ b/debian/dropbear.init	Fri Jul 08 13:27:28 2005 +0000
@@ -14,10 +14,12 @@
 
 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"