summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2007-07-25 16:20:57 +0000
committerMatt Johnston <matt@ucc.asn.au>2007-07-25 16:20:57 +0000
commit64f2759460e62eedf610bc762e61d87735acf13c (patch)
tree938cbb62ae1f338b3d0425990a81b81e2d91bfe4
parenta9a4cf873373f1cb056a8aa48b668ed0ee67df1b (diff)
downloaddropbear-64f2759460e62eedf610bc762e61d87735acf13c.tar.gz
Add default argument for receive window
-rw-r--r--debian/dropbear.init4
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/dropbear.init b/debian/dropbear.init
index 6a0f0a1..ee69076 100644
--- a/debian/dropbear.init
+++ b/debian/dropbear.init
@@ -26,6 +26,8 @@ test -n "$DROPBEAR_RSAKEY" || \
DROPBEAR_RSAKEY="/etc/dropbear/dropbear_rsa_host_key"
test -n "$DROPBEAR_DSSKEY" || \
DROPBEAR_DSSKEY="/etc/dropbear/dropbear_dss_host_key"
+test -n "$DROPBEAR_RECEIVE_WINDOW" || \
+ DROPBEAR_RECEIVE_WINDOW="65536"
case "$1" in
start)
@@ -33,7 +35,7 @@ case "$1" in
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile /var/run/"$NAME".pid \
--exec "$DAEMON" -- -d "$DROPBEAR_DSSKEY" -r "$DROPBEAR_RSAKEY" \
- -p "$DROPBEAR_PORT" $DROPBEAR_EXTRA_ARGS
+ -p "$DROPBEAR_PORT" -W "$DROPBEAR_RECEIVE_WINDOW" $DROPBEAR_EXTRA_ARGS
echo "$NAME."
;;
stop)