comparison 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
comparison
equal deleted inserted replaced
177:2098857ab826 218:3ee0c2f85e1e
12 DROPBEAR_EXTRA_ARGS= 12 DROPBEAR_EXTRA_ARGS=
13 NO_START=0 13 NO_START=0
14 14
15 set -e 15 set -e
16 16
17 cancel() { echo "$1" >&2; exit 0; };
17 test ! -r /etc/default/dropbear || . /etc/default/dropbear 18 test ! -r /etc/default/dropbear || . /etc/default/dropbear
18 test "$NO_START" = "0" || exit 0 19 test "$NO_START" = "0" || cancel 'NO_START is not set to zero.'
19 test -x "$DAEMON" || exit 0 20 test -x "$DAEMON" || cancel "$DAEMON does not exist or is not executable."
20 test ! -h /var/service/dropbear || exit 0 21 test ! -h /var/service/dropbear || \
22 cancel '/var/service/dropbear exists, service is controlled through runit.'
21 23
22 test -z "$DROPBEAR_BANNER" || \ 24 test -z "$DROPBEAR_BANNER" || \
23 DROPBEAR_EXTRA_ARGS="$DROPBEAR_EXTRA_ARGS -b $DROPBEAR_BANNER" 25 DROPBEAR_EXTRA_ARGS="$DROPBEAR_EXTRA_ARGS -b $DROPBEAR_BANNER"
24 test -n "$DROPBEAR_RSAKEY" || \ 26 test -n "$DROPBEAR_RSAKEY" || \
25 DROPBEAR_RSAKEY="/etc/dropbear/dropbear_rsa_host_key" 27 DROPBEAR_RSAKEY="/etc/dropbear/dropbear_rsa_host_key"