Mercurial > dropbear
comparison debian/dropbear.init @ 451:f2aa5aeea619
Add default argument for receive window
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 25 Jul 2007 16:20:57 +0000 |
parents | c23c7f0f594c |
children | 8c2d2edadf2a |
comparison
equal
deleted
inserted
replaced
450:c23c7f0f594c | 451:f2aa5aeea619 |
---|---|
24 DROPBEAR_EXTRA_ARGS="$DROPBEAR_EXTRA_ARGS -b $DROPBEAR_BANNER" | 24 DROPBEAR_EXTRA_ARGS="$DROPBEAR_EXTRA_ARGS -b $DROPBEAR_BANNER" |
25 test -n "$DROPBEAR_RSAKEY" || \ | 25 test -n "$DROPBEAR_RSAKEY" || \ |
26 DROPBEAR_RSAKEY="/etc/dropbear/dropbear_rsa_host_key" | 26 DROPBEAR_RSAKEY="/etc/dropbear/dropbear_rsa_host_key" |
27 test -n "$DROPBEAR_DSSKEY" || \ | 27 test -n "$DROPBEAR_DSSKEY" || \ |
28 DROPBEAR_DSSKEY="/etc/dropbear/dropbear_dss_host_key" | 28 DROPBEAR_DSSKEY="/etc/dropbear/dropbear_dss_host_key" |
29 test -n "$DROPBEAR_RECEIVE_WINDOW" || \ | |
30 DROPBEAR_RECEIVE_WINDOW="65536" | |
29 | 31 |
30 case "$1" in | 32 case "$1" in |
31 start) | 33 start) |
32 test "$NO_START" = "0" || cancel 'NO_START is not set to zero.' | 34 test "$NO_START" = "0" || cancel 'NO_START is not set to zero.' |
33 echo -n "Starting $DESC: " | 35 echo -n "Starting $DESC: " |
34 start-stop-daemon --start --quiet --pidfile /var/run/"$NAME".pid \ | 36 start-stop-daemon --start --quiet --pidfile /var/run/"$NAME".pid \ |
35 --exec "$DAEMON" -- -d "$DROPBEAR_DSSKEY" -r "$DROPBEAR_RSAKEY" \ | 37 --exec "$DAEMON" -- -d "$DROPBEAR_DSSKEY" -r "$DROPBEAR_RSAKEY" \ |
36 -p "$DROPBEAR_PORT" $DROPBEAR_EXTRA_ARGS | 38 -p "$DROPBEAR_PORT" -W "$DROPBEAR_RECEIVE_WINDOW" $DROPBEAR_EXTRA_ARGS |
37 echo "$NAME." | 39 echo "$NAME." |
38 ;; | 40 ;; |
39 stop) | 41 stop) |
40 echo -n "Stopping $DESC: " | 42 echo -n "Stopping $DESC: " |
41 start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/"$NAME".pid | 43 start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/"$NAME".pid |