summaryrefslogtreecommitdiff
path: root/dropbear
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2004-09-18 14:02:55 +0000
committerPhil Blundell <philb@gnu.org>2004-09-18 14:02:55 +0000
commit6778a68247eff55bef6afe21b5d87fb081dd1a58 (patch)
tree68763ae78f915ec2b2687d87034a8536b9aa2091 /dropbear
parent611f1158dbf2c5008495dc44e86533c4004faeb4 (diff)
check for key file existence after creating keys, not before
BKrev: 414c400fOKMO4yAyVVwiGNTrBIv4gg
Diffstat (limited to 'dropbear')
-rw-r--r--dropbear/dropbear/init10
-rw-r--r--dropbear/dropbear_0.43+0.44test4.oe2
2 files changed, 7 insertions, 5 deletions
diff --git a/dropbear/dropbear/init b/dropbear/dropbear/init
index 2f53d96ef0..21e2ffa671 100644
--- a/dropbear/dropbear/init
+++ b/dropbear/dropbear/init
@@ -46,10 +46,6 @@ test -n "$DROPBEAR_DSSKEY" || \
test -n "$DROPBEAR_KEYTYPES" || \
DROPBEAR_KEYTYPES="rsa"
-KEY_ARGS=""
-test -f $DROPBEAR_DSSKEY && KEY_ARGS="$KEY_ARGS -d \"$DROPBEAR_DSSKEY\""
-test -f $DROPBEAR_RSAKEY && KEY_ARGS="$KEY_ARGS -r \"$DROPBEAR_RSAKEY\""
-
gen_keys() {
for t in $DROPBEAR_KEYTYPES; do
case $t in
@@ -67,6 +63,9 @@ case "$1" in
start)
echo -n "Starting $DESC: "
gen_keys
+ KEY_ARGS=""
+ test -f $DROPBEAR_DSSKEY && KEY_ARGS="$KEY_ARGS -d \"$DROPBEAR_DSSKEY\""
+ 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
@@ -81,6 +80,9 @@ case "$1" in
echo -n "Restarting $DESC: "
start-stop-daemon -K -x "$DAEMON"
sleep 1
+ KEY_ARGS=""
+ test -f $DROPBEAR_DSSKEY && KEY_ARGS="$KEY_ARGS -d \"$DROPBEAR_DSSKEY\""
+ 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
diff --git a/dropbear/dropbear_0.43+0.44test4.oe b/dropbear/dropbear_0.43+0.44test4.oe
index 558f137338..b494ce74da 100644
--- a/dropbear/dropbear_0.43+0.44test4.oe
+++ b/dropbear/dropbear_0.43+0.44test4.oe
@@ -1,7 +1,7 @@
DESCRIPTION = "Dropbear SSH Implementation"
LICENSE = "MIT"
DEPENDS = "zlib"
-PR = "r1"
+PR = "r2"
RV = "0.44test4"
SRC_URI = "http://matt.ucc.asn.au/dropbear/testing/dropbear-${RV}.tar.bz2 \