aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/dropbear
diff options
context:
space:
mode:
authorRoman I Khimov <khimov@altell.ru>2010-06-03 18:18:05 +0400
committerRoman I Khimov <khimov@altell.ru>2010-06-09 11:17:29 +0400
commit44f496d37df485f16d67bcb88885c5f4437a002f (patch)
tree44ebd79cb94cea73b187a69cc8d4aa2154b0c02a /recipes/dropbear
parent6486ab8a0f5f9b8f78546dbecc43304ca03338e6 (diff)
downloadopenembedded-44f496d37df485f16d67bcb88885c5f4437a002f.tar.gz
dropbear: support comma-separated list of addresses in port spec
Signed-off-by: Roman I Khimov <khimov@altell.ru>
Diffstat (limited to 'recipes/dropbear')
-rw-r--r--recipes/dropbear/dropbear.inc2
-rwxr-xr-xrecipes/dropbear/dropbear/init7
2 files changed, 6 insertions, 3 deletions
diff --git a/recipes/dropbear/dropbear.inc b/recipes/dropbear/dropbear.inc
index f0b621ac21..5da00f284a 100644
--- a/recipes/dropbear/dropbear.inc
+++ b/recipes/dropbear/dropbear.inc
@@ -6,7 +6,7 @@ DEPENDS = "zlib"
PROVIDES = "ssh sshd"
RPROVIDES = "ssh sshd"
-INC_PR = "r2"
+INC_PR = "r3"
SRC_URI = "\
http://matt.ucc.asn.au/dropbear/dropbear-${PV}.tar.bz2 \
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."
;;
*)