comparison debian/dropbear.init @ 469:8c2d2edadf2a

Update to debian 0.50-4 diff
author Matt Johnston <matt@ucc.asn.au>
date Thu, 27 Mar 2008 10:19:28 +0000
parents f2aa5aeea619
children 3c3cef8a32e6 4ca2872c7d9e
comparison
equal deleted inserted replaced
467:0871a0b89f7c 469:8c2d2edadf2a
1 #!/bin/sh 1 #!/bin/sh
2 ### BEGIN INIT INFO
3 # Provides: dropbear
4 # Required-Start: $remote_fs $syslog
5 # Required-Stop: $remote_fs $syslog
6 # Default-Start: 2 3 4 5
7 # Default-Stop: 0 1 6
8 ### END INIT INFO
2 # 9 #
3 # Do not configure this file. Edit /etc/default/dropbear instead! 10 # Do not configure this file. Edit /etc/default/dropbear instead!
4 # 11 #
5 12
6 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 13 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
15 set -e 22 set -e
16 23
17 cancel() { echo "$1" >&2; exit 0; }; 24 cancel() { echo "$1" >&2; exit 0; };
18 test ! -r /etc/default/dropbear || . /etc/default/dropbear 25 test ! -r /etc/default/dropbear || . /etc/default/dropbear
19 test -x "$DAEMON" || cancel "$DAEMON does not exist or is not executable." 26 test -x "$DAEMON" || cancel "$DAEMON does not exist or is not executable."
20 test ! -h /var/service/dropbear || \ 27 test ! -x /usr/sbin/update-service || ! update-service --check dropbear ||
21 cancel '/var/service/dropbear exists, service is controlled through runit.' 28 cancel 'The dropbear service is controlled through runit, use the sv(8) program'
22 29
23 test -z "$DROPBEAR_BANNER" || \ 30 test -z "$DROPBEAR_BANNER" || \
24 DROPBEAR_EXTRA_ARGS="$DROPBEAR_EXTRA_ARGS -b $DROPBEAR_BANNER" 31 DROPBEAR_EXTRA_ARGS="$DROPBEAR_EXTRA_ARGS -b $DROPBEAR_BANNER"
25 test -n "$DROPBEAR_RSAKEY" || \ 32 test -n "$DROPBEAR_RSAKEY" || \
26 DROPBEAR_RSAKEY="/etc/dropbear/dropbear_rsa_host_key" 33 DROPBEAR_RSAKEY="/etc/dropbear/dropbear_rsa_host_key"