aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/dropbear/S50dropbear10
1 files changed, 8 insertions, 2 deletions
diff --git a/package/dropbear/S50dropbear b/package/dropbear/S50dropbear
index d94310c04e..a343b9e1c0 100644
--- a/package/dropbear/S50dropbear
+++ b/package/dropbear/S50dropbear
@@ -3,14 +3,20 @@
# Starts dropbear sshd.
#
+# Allow a few customizations from a config file
+test -r /etc/default/dropbear && . /etc/default/dropbear
+
start() {
- echo -n "Starting dropbear sshd: "
+ DROPBEAR_ARGS="$DROPBEAR_ARGS -R"
+
+ echo -n "Starting dropbear sshd: "
# Make sure dropbear directory exists
if [ ! -d /etc/dropbear ] ; then
mkdir -p /etc/dropbear
fi
umask 077
- start-stop-daemon -S -q -p /var/run/dropbear.pid --exec /usr/sbin/dropbear -- -R
+ start-stop-daemon -S -q -p /var/run/dropbear.pid \
+ --exec /usr/sbin/dropbear -- $DROPBEAR_ARGS
[ $? == 0 ] && echo "OK" || echo "FAIL"
}
stop() {