diff options
Diffstat (limited to 'recipes/dropbear/dropbear/init')
-rwxr-xr-x | recipes/dropbear/dropbear/init | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/recipes/dropbear/dropbear/init b/recipes/dropbear/dropbear/init index 5c8dfc12a8..275aa328df 100755 --- a/recipes/dropbear/dropbear/init +++ b/recipes/dropbear/dropbear/init @@ -19,6 +19,9 @@ test "$NO_START" = "0" || exit 0 test -x "$DAEMON" || exit 0 test ! -h /var/service/dropbear || exit 0 +# Allows comma-separated list of addresses/ports +DROPBEAR_PORT=`echo $DROPBEAR_PORT | sed "s/,/ -p /g"` + readonly_rootfs=0 for flag in `awk '{ if ($2 == "/") { split($4,FLAGS,",") } }; END { for (f in FLAGS) print FLAGS[f] }' </proc/mounts`; do case $flag in @@ -74,7 +77,7 @@ case "$1" in test -f $DROPBEAR_RSAKEY && KEY_ARGS="$KEY_ARGS -r $DROPBEAR_RSAKEY" start-stop-daemon -S \ -x "$DAEMON" -- $KEY_ARGS \ - -p "$DROPBEAR_PORT" $DROPBEAR_EXTRA_ARGS + -p $DROPBEAR_PORT $DROPBEAR_EXTRA_ARGS echo "$NAME." ;; stop) @@ -91,7 +94,7 @@ case "$1" in test -f $DROPBEAR_RSAKEY && KEY_ARGS="$KEY_ARGS -r $DROPBEAR_RSAKEY" start-stop-daemon -S \ -x "$DAEMON" -- $KEY_ARGS \ - -p "$DROPBEAR_PORT" $DROPBEAR_EXTRA_ARGS + -p $DROPBEAR_PORT $DROPBEAR_EXTRA_ARGS echo "$NAME." ;; *) |